install by this ---npm install --save font-awesome angular-font-awesome in app module import this -- AngularFontAwesomeModule
install by this ---npm install --save font-awesome angular-font-awesome in app module import this -- AngularFontAwesomeModule
In angular 9 IVy is by default true so change this to false In tsconfig.app.json file add this "angularCompilerOptions": { "enableIvy": false }
after that go to the node_module folder and search angular font awesome go to the dist folder in that open file angular-font-awesome.js file and change the name of Renderer to Renderer2 Because in updated angular it support Renderer2
To install font-awesome in your project, please follow below steps
1) npm install font-awesome
2) Set the font-awesome.css path in Angular.json files "styles" array. Commonly it is like this "node_modules/font-awesome/css/font-awesome.css"
3) Make sure you define font-awesome path before style.scss path and after bootstrap css path
I had used it with angular 8,9 and it was so good.
You just need to read the document and follow.