问题:
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.为了对我的应用程序实施一些授权,我想知道如何手动重定向到另一条路由,我似乎在互联网上找不到任何有用的信息。