验证模板-AngularJs 2

验证模板-AngularJs 2,angularjs,authentication,angular,web,components,Angularjs,Authentication,Angular,Web,Components,我们正在尝试在Angular2上构建我们的应用程序,我们希望验证Angular2使用的HTML模板 例如: @Component({ template:'We specify the HTML URL of the template's here' }) 我想,在呈现HTML之前,应该在服务器端验证登录用户是否有足够的权限查看HTML内容 我知道有多种方法可以在客户端处理这种事情,但我想从服务器端进行身份验证

我们正在尝试在Angular2上构建我们的应用程序,我们希望验证Angular2使用的HTML模板

例如:

  @Component({
       template:'We specify the HTML URL of the template's here' 
   })
我想,在呈现HTML之前,应该在服务器端验证登录用户是否有足够的权限查看HTML内容

我知道有多种方法可以在客户端处理这种事情,但我想从服务器端进行身份验证