Ng Material Icons
A library for using Material Icons in Angular.
Links
Setup
- Install in your project using npm:
npm install ng-mat-icons
- Import the
NgMatIconsModule
in your module. The recommended way is to include it in aSharedModule
, which also exports it. Then import theSharedModule
in other modules of your application. Check the full documentation for additional information.
;;;
- Now you can begin to use Material Icons in your components.
<!-- Using icon name -->face <!-- Using code point --> <!-- Adding aria-label -->face <!-- Setting the size -->homehomehomehome <!-- Setting the color -->menumenumenumenu
Check the full documentation for details. Additional information on icons and names and icon names with code points.
Contribution
Build
Run ng build
to build the project.
Run ng build:lib
to build the library. The build artifacts will be stored in the dist/
directory.
Running unit tests
Run npm run test:lib
to execute the unit tests for the library.