I am facing an issue with canActivate in Angular 2.0.0-rc.3.
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean>{
console.log('canActivate with AclService');
// return true;
return Observable.create((observer:Subject<boolean>) => { observer.next(true); });
}
It seems that it's not working with Observable response, but it does work with a simple boolean response.
How can I resolve this problem?