question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Font Awesome 5 in Angular application before bootstrapping (and after bootstrapping)

See original GitHub issue

We have been using Font Awesome 4 up until now and are now in the process to upgrade to version 5 properly. All icons are working perfectly and this package seems to accomplish everything we have used so far in version 4 while being easy to use.

There is sadly one issue we are unable to solve: we would like to use a spinning circle-notch icon before Angular is done bootstrapping our application. With Font Awesome 4, we would just add font-awesome’s CSS files to .angular-cli.json and add <i class="fa fa-circle-o-notch fa-spin fa-3x fa-fw"></i> to the HTML file.

This approach doesn’t work, not even if importing the icons in main.ts without angular-fontawesome as described here: https://fontawesome.com/how-to-use/use-with-node-js

Is there a recommended way to achieve the same behavior?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
devoto13commented, Feb 27, 2018

@wartab I would not rely on icons auto replacement in this case. Rendering icon manually seems to work. See here.

0reactions
mlwilkersoncommented, Mar 23, 2018

There might be a connection between this issue and #18.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Use Bootstrap And Font Awesome In Angular Apps
Now let's have Bootstrap and Font Awesome in this application. Go two your terminal again and stop the last job that was “ng...
Read more >
How To Use Font Awesome icons in Angular Applications
In this tutorial I will explain how to use Font Awesome icons in Angular applications using @fortawesome/angular-fontawesome package.
Read more >
Best way to use Bootstrap and FontAwesome using NPM in ...
I show you the best way to use Bootstrap and FontAwesome in your Angular app using NPM. FontAwesome is the biggest icon library...
Read more >
How to add Fontawesome to an Angular app and get the icons ...
This answer is good if you only need to use Font Awesome icons in 1/2 components. If you're planning on using them throughout...
Read more >
Best way to use bootstrap & font awesome with Angular 10
Get detailed knowledge about how to install and use bootstrap, ng- bootstrap and font awesome with Angular 10. I am going to cover...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found