I was wondering how to use Material's icons, as this is not working:
<material-icon icon = "/img/icons/ic_access_time_24px.svg"> </material-icon>
I guess there is a problem with the path given as parameter to the the icon attribute. I would like to know where this icon folder actually is?
By Using like
use css and font same location
md-icons aren't in the bower release of angular-material yet. I've been using Polymer's icons, they'll probably be the same anyway.
In their latest release there's a directive called
md-icon
It actually works now from bower.
It downloads 37.1 KBs. Then it extracts and installs. You will see a folder called material-design-icons in bower_components folder. The total size is around 299KBs
source: https://material.angularjs.org/#/demo/material.components.button
All
md-
prefixes are nowmat-
prefixes as of time of writing this!Put this in your html head:
Import in our module:
Use in your code:
Here is the latest documentation:
https://material.angular.io/components/icon/overview