evolvus-login-component
v0.0.2
Published
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.8.
Downloads
2
Readme
LoginComoponent
This project was generated with Angular CLI version 1.6.8.
Usage
npm install --save evolvus-login-component
npm install --save bootstrap@3
and update .angular-cli.json file
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
],
Then Import EvolvusLoginModule
to your AppModule then in your HTML file
use <app-login [title]="'Example'" (onLogin)="yourOwnMethod($event)"></app-login>
title
is attribute to display on login form mandatory
onLogin
is en emitted event on submitting the form if valid,emitted object {username,password}
yourOwnMethod($event)
you can write your own method example
login(event:any){
console.log(JSON.stringify(event));
}