@airtradeit/login-page
v2.1.0
Published
This library shares Login Page which can be used for OM and FF applications.
Downloads
1,016
Keywords
Readme
LoginPage
This library shares Login Page which can be used for OM and FF applications.
Example usage
In app.module.ts add code snippet below to the imports:
LoginPageModule.forRoot({
appName: '<strong>Order</strong>Manager',
})and then use LoginPageComponent in your page passing these props:
<lib-login-page
[content]="<your mapped content from contentful>"
[translations]="<contentful translations>"
(authLogin)="auth login method">
</lib-login-page>Code scaffolding
Run ng generate component component-name --project login-page to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project login-page.
Note: Don't forget to add
--project login-pageor else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build --prod login-page to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build --prod login-page, go to the dist folder cd dist/login-page and run npm publish.
Running unit tests
Run jest to execute the unit tests via [Jest]
