javascript - Loading of data before angular 2 loads router-outlets -


i using angular 2 release version.

during app initialisation, need call service fetches user , menu related information.

since user related information required components, using *ngif show div containing router-outlet once data loaded successfully. working deprecated router, because of race condition, angular throws error saying not able find router-outlet tag switch between components.

how handle such scenario?


Comments

Popular posts from this blog

linux - Could not find a package configuration file provided by "Qt5Svg" -

simple.odata.client - Simple OData Client Unlink -