为什么它没有导航到 angular js 中的另一个页面

why it is not navigating into another page in angular js

我尝试使用 this.router.navigateid 在另一个组件中导航,但它没有给出错误,也没有导航 ..

这是我的代码 https://plnkr.co/edit/E6HCvkksFPt4mK4lN6mU?p=preview

moveToSecond(){
    alert('----')
    this.router.navigate(['/sd',{id:'ss'}]);
  } 

要创建所需的 URL,您可以在下面使用。

this.router.navigate(['/sd','ss']);

Forked Plunkr