Consider the following route configuration:
const routes: Routes = [ { path: \'\', component: AppComponent, resolve: { app: AppResolver
You can try something like this:
constructor(private activatedRoute: ActivatedRoute) { this.activatedRoute.parent.data.subscribe(data => { this.profile = data.profile; }); } updateProfile(newProfile) { (this.activatedRoute.parent.data as BehaviorSubject).next({profile: newProfile}); }