In Angular 10: can I refresh data from Resolver of parent route?

I have a parent route which uses a Resolver to get data. I have several children of this route. The child Components subscribe to this data in their ngOnInit() methods. ngOnInit() { this.route.parent.data .subscribe((data: { collection: DataCollection }) => { this.collection = data.collection; }); } The Resolver only runs on the first access of one […]

By blogofsongs
Published
Categorized as angular, refresh, reload, resolver, state Tagged , , , ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq