How can I use resolver data in another resolver?

时间:2018-06-04 17:07:55

标签: javascript angular angular-routing resolver

Hello I'm using Angular 5 and I want to use data in my resolver in another chaine resolver I don't know if there is a way to use subResolver or something like this ;

Routing

    { path: 'people/:id',
     component: PersonComponent,
       resolve: { connection :  ConnectionResolver,
       realTimePerson : PersonListenResolver
      }
    },

I want to use route.data[connection] on the PersonListenResolver ?

0 个答案:

没有答案