Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import { Component, OnInit } from 'angular2/core';
  2. import { RouteParams, Router, CanActivate } from 'angular2/router';
  3.  
  4. import { IdentityServerAuth } from '../auth.component';
  5.  
  6. @Component({
  7. template: `
  8. <h2>In private route</h2>
  9. `,
  10. })
  11. @CanActivate(() =>
  12. {
  13. return IdentityServerAuth.check();
  14. })
  15. export class PrivateRoute
  16. {
  17. constructor() { }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement