xxxxxxxxxx
<a routerLink="/Service/Sign_in"><button class="btn btn-success pull-right" > Add Customer</button></a>
xxxxxxxxxx
<a routerLink="/Service/Sign_in"><button class="btn btn-success pull-right" > Add Customer</button></a>
xxxxxxxxxx
<button type="button" class="btn btn-primary-outline pull-right" (click)="btnClick();"><i class="fa fa-plus"></i> Add</button>
•
// myComponent.component.ts file.
import { Router } from '@angular/router';
•
constructor(private router: Router) {
•
}