When using the resolve :{ key : ResolverService}
to resolve some data for the component, if the ResolverService
returns some data immediately (without using observable or promise), the component is loaded as expected on the UI. But, if the resolver is returning Observable, then it is not working, even when the observable gets its next value;
Example on stackblitz:
https://stackblitz.com/edit/ng-delayed-resolver-issue
The logic for returning observable in guard and resolver is the same, but the resolve doesn't seem to work for some reason.
Already checked this Router Resolver not rendering component , didn't help much.
Any help for the given scenario is appreciated. Thanks