摘要:
Unlike 'useClass', 'useExisting' doesn't create a new instance when you register your service inside ngmodule. 'useExisting' also can limit the functi 阅读全文
posted @ 2017-05-11 04:32
Zhentiw
阅读(1078)
评论(0)
推荐(0)
摘要:
Using factory provider: Here we create 'DrinkFactory' as a named funciton, this is good for AOT, so recommended doing this way. 阅读全文
posted @ 2017-05-11 04:04
Zhentiw
阅读(1235)
评论(0)
推荐(0)
摘要:
Previously we have 'OpaqueToken', but it is DEPRECATED. The new one is called 'InjectionToken'. The difference between OpaqueToken is for InjectionTok 阅读全文
posted @ 2017-05-11 01:35
Zhentiw
阅读(907)
评论(0)
推荐(0)

浙公网安备 33010602011771号