I\'m having a problem with regards of implementing a resolver on my routes as it has no issue until I include InitialDataResolver on my routing module.
resolve(route: ActivatedRouteSnapshot,
state: RouterStateSnapshot): Observable {
return Observable.create((observer: Observer) => {
this.appInitService.init()
.subscribe(data => {
this.appInitService.preload();
observer.next(data);
observer.complete();
});
}).map(item => !!item)
}
The code above will work for you.
if your rxjs version is 6.x you will use .pipe(map(item => !!item))