阅读背景:

检查用户是否登录Angular 2中的任何页面更改

来源:互联网 

Slowly but surely progressing with Angular2. And now I faced the following challenge. I want to check if the user logged in or not on every page change (in other words on load of each and every component). Of course, I can implement OnInit interface in each and every one of them, but that is code smell.Slowly but surely progressing with Angular2. An




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: