import { Injectable } from '@angular/core' ; import { CanActivate , ActivatedRouteSnapshot , RouterStateSnapshot } from '@angular/router' ; import { Observable } from 'rxjs/Observable' ; @ Injectable ( ) export class LoginGuard implements CanActivate { canActivate ( next , state ) { return true ; } }