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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章