Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from 'angular2/core';
- import { RouteParams, Router, CanActivate } from 'angular2/router';
- import { IdentityServerAuth } from '../auth.component';
- @Component({
- template: `
- <h2>In private route</h2>
- `,
- })
- @CanActivate(() =>
- {
- return IdentityServerAuth.check();
- })
- export class PrivateRoute
- {
- constructor() { }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement