Developing Multi-Platform Apps with Visual Studio Code by Ovais Mehboob Ahmed Khan & Khusro Habib & Chris Dias

Developing Multi-Platform Apps with Visual Studio Code by Ovais Mehboob Ahmed Khan & Khusro Habib & Chris Dias

Author:Ovais Mehboob Ahmed Khan & Khusro Habib & Chris Dias [Ovais Mehboob Ahmed Khan]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2020-09-18T00:00:00+00:00


Using the router link directive

To direct the user to the login form, we will add a login button to the navigation bar. Clicking this button will redirect the user to the login page. To add the login button in the NavBar, add the routerLink directive to the Login button we added earlier and specify the parent path /login for the LoginModule, as illustrated in the following code snippet:

<form class='form-inline'>

<button class='btn btn-sm btn-outline-secondary' type='button'

routerLink='/login'>Login</button>

</form>

This will give you the following output:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.