How to inject data into Angular2 component created from a router?

后端 未结 3 683
隐瞒了意图╮
隐瞒了意图╮ 2021-01-13 00:29

I\'m currently trying to build an Angular2 prototype (based on alpha44) of our Angular1 app (pretty complex one) and I\'m trying to find the best model/data architecture whe

3条回答
  •  情话喂你
    2021-01-13 01:22

    You can use RouteData in order to pass data into routes. See here and here. I'm still missing the part of initialising this data obj from the component (see my question regarding)

提交回复
热议问题