@fitpuli/fitpuli-auth
v1.0.0-beta.24
Published
Basic login component/forgot password component with service. Based on @angular/fire.
Downloads
30
Readme
FitpuliAuth
Basic login component/forgot password component with service. Based on @angular/fire.
This library was generated with Angular CLI version 8.2.14.
Code scaffolding
Run ng generate component component-name --project fitpuli-auth
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project fitpuli-auth
.
Note: Don't forget to add
--project fitpuli-auth
or else it will be added to the default project in yourangular.json
file.
Usage
Add module to imports:
@NgModule({
declarations: [],
imports: [
FitpuliAuthModule.forRoot(environment.firebase, {
authGuardFallbackURL: "/login"
})
],
exports: [],
})
Insert <fitpuli-auth (onSuccess)="onSuccess($event)" (onError)="onError($event)"></fitpuli-auth>
where you want to display the login UI.
Build
Run ng build fitpuli-auth
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build fitpuli-auth
, go to the dist folder cd dist/fitpuli-auth
and run npm publish --access public
.
Running unit tests
Run ng test fitpuli-auth
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.