loading...

Angular: ActivatedRoute does not update the child route data on route changes

anduser96 profile image Andrei Gatej ・1 min read

I'm tying to get the child route data('layout') from parent component using ActivatedRoute. I have tried the following example and I'm able to get the data I'm looking for but only for one time. During child route changes, I don't see the updated 'layout' value.

Routes

const routes: Routes

Discussion

pic
Editor guide