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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -