How to use in Angular Material?

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

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

          


        
9条回答
  •  误落风尘
    2021-01-29 19:52

    Easy way: use the following CDN:

     
    

    Inject ngMdIcons to your angularjs application:

    angular.module('demoapp', ['ngMdIcons']);
    

    Use ng-md-icon directive in your html, specifying fill-color through css:

     
    

    Source: https://klarsys.github.io/angular-material-icons/

提交回复
热议问题