abacritt / angularx-social-login

Social login and authentication module for Angular 17
630 stars 387 forks source link

How to use login widget in child component in latest NG14 ? #567

Closed shamusschubert closed 1 year ago

shamusschubert commented 1 year ago

Discussed in https://github.com/abacritt/angularx-social-login/discussions/566

Originally posted by **shamusschubert** August 9, 2022 The demos always say to add the login widget to the app.component.html but most applications (mine at least) use components for headers and footers, with login/logout being a navbar items. If I try to import the SocialLoginModule into my UI module, so I can use in the header component, it says it is already added, and only add itin the app,module. Can this be added to a child module, or is there a way to add it to app.module and make it available to a child component like a navabar? Thanks.
Heatmanofurioso commented 1 year ago

Duplicate of https://github.com/abacritt/angularx-social-login/issues/571 @shamusschubert Please don't open 3 issues with the exact same question copy pasted