I found these instructions for the older version of font awesome but it doesnt work with fa v5
This is the key page:
Install with npm, and then use a deep import to get tree shaking.
Be warned that the tree shaking is a bit wobbly at the moment, and expect things to change somewhat substantially in 5.1. If you have a Pro subscription, follow issue 978. If not, or you just want the tl;dr, follow the instructions in @AaronSterling’s link and once you use
library.add() to add any icon declaration, that whole pack will come in.
It works if you end up whole tutorial and add @component FaIconComponent to yours app.module.ts declarations and entrycomponents