Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //CODE FOR CLICKING BUTTON
- <button type="button" class="btn btn-primary-outline pull-right" (click)="redirect();"><i class="fa fa-plus"></i> change</button>
- //CODE FOR CALLING FUNCTION
- constructor(private router: Router,public zone: NgZone) { }
- redirect(){
- this.router.navigate('/store');
- }
- //CODE FOR ROUTER DEFINED
- RouterModule.forRoot([
- {path:'',pathMatch: 'full',component:Dashboard1Component},
- {path:'store',component:Store1Component},
- ])
- ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement