1.0.7 • Published 7 years ago
basiclogin v1.0.7
What does this package do? Provides a basic login component with a e-mail and password. When the login button is clicked, a message is displayed.
- Default message is "You logged in as EMAIL
How to use this package
- Install the package with
npm install basiclogin
Import the module and declare it as import in your module
import { BasicLoginModule } from 'basiclogin';
imports: [ BasicLoginModule ]
OPTIONAL: import the MessageService ...
import { MessageService } from 'basiclogin';
... to inject it and change the displayed message
constructor(private msgService: MessageService) { this.msgService.setMessage('This should be displayed instead of the default'); }
Get the message from the MessageService
msgService.getMessage()
Have fun!