Angular:手动重定向到路由 - Angular : Manual redirect to route

问题:

I just recently started using angular 4 instead of angular.js 1.我最近才开始使用 angular 4 而不是 angular.js 1。

I have followed the heroes tutorial to learn about the fundamentals of angular 4 and I am currently using angular's own "RouterModule" from the "@angular/router" package.我已经按照英雄教程来了解 angular 4 的基础知识,我目前正在使用来自“@angular/router”包的 angular 自己的“RouterModule”。

In order to implement some authorization for my application I would like to know how to manually redirect to another route, I can not seem to find any useful information about this on the internet.为了对我的应用程序实施一些授权,我想知道如何手动重定向到另一条路由,我似乎在互联网上找不到任何有用的信息。


解决方案:

参考: https://stackoom.com/en/question/3BlbW
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章