Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. ...
  2. export * from './test/index';
  3.  
  4. ...
  5. export * from './my-service.service';
  6.  
  7. import { MyService } from '../../core';
  8. ...
  9.  
  10. @Injectable()
  11. export class AuthGuard implements CanActivate {
  12. isValidSession: boolean = false;
  13. errorMessage: any;
  14.  
  15. constructor(
  16. private myService: MyService
  17. ) { }
  18.  
  19. canActivate(
  20. // Not using but worth knowing about
  21. next: ActivatedRouteSnapshot,
  22. state: RouterStateSnapshot
  23. ) {
  24. return this.myService.doSomething();
  25. }
  26. }
  27.  
  28. import { MyService } from '../../core/test/my-service.service';
  29.  
  30. import { MyService } from '../../core/test';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement