NG Fontawesome Icon
🍺 NG Fontawesome Icon for Angular Lovers. Coded by Bootcatch.
Installation
Using NPM:
npm i ng-fontawesome-icon --save
npm i font-awesome --save
In your styles.scss
file import font-awesome css
/* You can add global styles to this file, and also import other style files */@;
Usage
Import direct in your app.module.ts
file:
;;; //import NgFontawesomeModule from ng-fontawesome; @
Then use wherever you want !! Goodluck:
Note
- Add only name to icon, e.g
icon="file"
- No need to add full name like e.g
icon="fa fa-file"
- icon - font-awesome icon name will find here here
- size - icon size in
rem
. - color - you can give any valid value
e.g red, yellow, #fffff, #ff0000.
Author
Ajay Marathe
Copyright and License
Copyright 2019 Ajay Marathe. Code released under the MIT license.