Navigate to another page with a button in angular 2

前端 未结 7 1066
天命终不由人
天命终不由人 2020-12-12 18:00

I am trying to navigate to a another page by clicking a button but it fails to work. What could be the problem. I am now learning angular 2 and it\'s a bit tough for me now.

7条回答
  •  Happy的楠姐
    2020-12-12 18:33

    You can use routerLink in the following manner,

    
    

    or use

提交回复
热议问题