How to use in Angular Material?

后端 未结 9 604
南方客
南方客 2021-01-29 19:39

I was wondering how to use Material\'s icons, as this is not working:

          


        
9条回答
  •  孤街浪徒
    2021-01-29 19:49

    The simplest way today would be to simply request the Material Icons font from Google Fonts, for example in your HTML header tag:

    
    

    or in your stylesheet:

    @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
    

    and then use as font icon with ligatures as explained in the md-icon directive. For example:

    menu
    

    The complete list of icons/ligatures is at https://www.google.com/design/icons/

提交回复
热议问题