阅读背景:

使用ng-if隐藏管理数据

来源:互联网 

I have an angular app, where each time I try to access a secure route, I first send a request to the server to verify my token. If the token is valid, I send an object to the client with the user's details, and a field telling me whether the user is an admin or not. On some pages, I want certain divs to be seen only by admins, so I do this:I have an angular app, where each time I try to




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

分享到: