DEV Community

Andrei Gatej
Andrei Gatej

Posted on

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

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

Top comments (0)