tsslogin
v0.1.3
Published
Welcome to the tss-login-builder.
Readme
Welcome to the tss-login-builder.
Understand the code before installing:tssLoginGit
Steps to follow to use the tss-login.
- Enter the command
npm install tss-loginin the terminal. - Install below dependencies
1. npm install --save @angular/[email protected]
2. npm install --save [email protected]
3. npm install --save @angular/[email protected]
4. npm install --save [email protected]
import the module in the app.module.ts file(import { LoginModule } from 'tsslogin').
import the type in the imports of @NgModule(LoginModule).
Use the selector in app.component.html which will be present in the component of your library(
<tss-login></tss-login>).To provide option declare variable options in app.component.ts and bind it to interface of tsslogin library
Example: options:LoginImageProperties- Now assign json to options as:
this.options={
name:'',
btnLabel:'LOG IN',
logo:'vik.txt',
title:'LoginForm'
}
- Modify the tag in app.component.html to
<tss-login [options]="options"></tss-login>
FOR DEMO VISIT:tssLogin
