Closed eufelipemateus closed 6 years ago
Did you import the icons? https://murhafsousli.github.io/ngx-sharebuttons/#/icons
No.. I will import now.. Thanks..
Using icon library as in the link throws the warning:
FontAwesome: Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.
@anelad did u find the solution to this issue? @MurhafSousli any workaround so that we can use our own icons?
@sushiie, no, I do not have any solution yet. Just using as it is.
I did this as a solution:
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
import { faFacebookF } from '@fortawesome/free-brands-svg-icons/faFacebookF';
@NgModule({
declarations: [
],
imports: [
BrowserModule,
BrowserAnimationsModule,
FontAwesomeModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
constructor(library: FaIconLibrary) {
library.addIcons(faFacebookF);
}
}
The deprecation errors are gone but the icons are not visible.
its working fine
Does anyone have a solution to this issue? I did all the above workaround but none of them are working for me. I am trying to integrate this plugin in angular13 application
File package.json
File app.module.ts
File post.ts
File post.html