Angular 2 – Basic Login Example

0
147

Introduction:
In this post, explained the basic login example  for beginners . Create a login page like below.

Login/login.component.html:

Create a component for the login page and defined properties username and password.And also added login method to handle login event.
Login/login.component.ts:

app.component.ts:

app.component.html:

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here