md-icon svgSrc dont work
See original GitHub issueI installed fresh,the latest Version of Material2.
md-icon: <md-icon svgSrc="img/icons/social/facebook.svg"></md-icon>
dont give out any icon. In Material1 it include the svg code in the html template. But for me in new Material absolutly nothing happens. I dont get any error to.
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
Using Md-icon, I can't display the custom svg - Stack Overflow
Try md-svg-src instead of md-svg-icon. md-svg-src : String URL (or expression) used to load, cache, and display an external SVG. You can see...
Read more >Directives > mdIcon - AngularJS Material
The directive supports both icon fonts and SVG icons. Icons should be considered view-only elements that should not be used directly as buttons;...
Read more >How to use <md-icon> in Angular Material? - SyntaxFix
I was wondering how to use Material's icons, as this is not working: ... <md-icon md-svg-src = '/static/img/android.svg'></md-icon>. or. <md-icon md-svg-src ...
Read more >angular/material2 - Gitter
I am using the material-expansion panel from: dart-lang/angular2_components. I wanted to be able to change the color of the title div from white...
Read more >Load Svg Icons From Url - CodePen
<md-icon ng-switch-when="true" md-svg-src="img/icons/cake.svg" class="s24" alt="Cake"></md-icon><br/>. 13. <md-icon ng-switch-when="false" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@BamiGorengo You will need to add the icons explicitly in the icon registry. For an example, look at the src/demo-app/icon/icon-demo.ts, specifically the constructor:
The “thumb-up” icon is then usable as is show in the src/demo-app/icon/icon-demo.html
I would also like to know if there is a way to register all icons globally