Angular 4 Injecting route in the APP_INITIALIZER

前端 未结 2 1019
深忆病人
深忆病人 2021-02-14 16:52

I am trying to retrieve a data present in the url in my APP_INITIALIZER

app.module.ts

export function init(config: ConfigService, router: Router) {
    r         


        
2条回答
  •  灰色年华
    2021-02-14 17:39

    What I was trying to do isn't feasible since the APP_INITIALIZER happens before the router init. https://medium.com/hackernoon/hook-into-angular-initialization-process-add41a6b7e

提交回复
热议问题