How to use in Angular Material?

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

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

          


        
9条回答
  •  忘掉有多难
    2021-01-29 19:58

    All md- prefixes are now mat- prefixes as of time of writing this!

    Put this in your html head:

    
    

    Import in our module:

    import { MatIconModule } from '@angular/material';
    

    Use in your code:

    face
    

    Here is the latest documentation:

    https://material.angular.io/components/icon/overview

提交回复
热议问题