angular - RouterLink don't adds href at first load from parent page template -
i have root page child pages, root page template has [routerlink]
directives route child pages. this:
<a [routerlink]="['/home', 'auidiences']"></a> <router-outlet></router-outlet>
homecomponуnt has router_directives in directives section.*
when navigate page @ first time links don't have hrefs, if update page , work. idias?
the reason understand related this bug. , 1 more - user answer. oninit doesn't fire , there no component works fine after router navigation.
to solve problem need wrap navigation call zone.run()
.
Comments
Post a Comment