Angular : Manual redirect to route

后端 未结 8 1182
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-12 19:50

I just recently started using angular 4 instead of angular.js 1.

I have followed the heroes tutorial to learn about the fundamentals of angular 4 and I am currently

8条回答
  •  一个人的身影
    2020-12-12 20:33

    You may have enough correct answers for your question but in case your IDE gives you the warning

    Promise returned from navigate is ignored

    you may either ignore that warning or use this.router.navigate(['/your-path']).then().

提交回复
热议问题