Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angularfontawesome not import

enter image description here

install by this ---npm install --save font-awesome angular-font-awesome in app module import this -- AngularFontAwesomeModule

like image 218
Avinash Avatar asked Jun 23 '26 03:06

Avinash


2 Answers

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

like image 117
Avinash Avatar answered Jun 24 '26 20:06

Avinash


I had used it with angular 8,9 and it was so good.

You just need to read the document and follow.

https://github.com/FortAwesome/angular-fontawesome

like image 28
Tran Dong Avatar answered Jun 24 '26 21:06

Tran Dong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!