标签: angularjs authentication angular web components
我们正在尝试在Angular2上构建我们的应用程序,并且我们想要验证Angular使用的HTML模板。
例如:
@Component({ template:'We specify the HTML URL of the template's here' })
我希望,在角度渲染HTML之前,应该在服务器端验证登录用户是否具有查看该HTML内容的足够权限。
据我所知,有多种方法可以在客户端处理此类问题,但我想从服务器端进行身份验证。