Angular - export fontawesome to a feature module
问题 In app.module I got the following lines regarding fontawesome import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome'; import { faBars, faCopyright } from '@fortawesome/free-solid-svg-icons'; export class AppModule { constructor(private library: FaIconLibrary) { library.addIcons(faBars, faCopyright); } how can i include them in a feature module? the costructor part is troubling me 回答1: Icon library is provided using root scope, so you'll always have a single icon