上一页 1 ··· 347 348 349 350 351 352 353 354 355 ··· 491 下一页
摘要: NgZone, Angular uses it to profiling all the async actions such as setTimeout, http request and animation. For example if you dealing with heavy oprat 阅读全文
posted @ 2017-05-12 03:52 Zhentiw 阅读(1756) 评论(0) 推荐(0)
摘要: Tachyons provides extensions (-ns, -m, and -l) to many of its classes to help you design for responsive layouts. This lesson walks you through designi 阅读全文
posted @ 2017-05-12 03:40 Zhentiw 阅读(237) 评论(0) 推荐(0)
摘要: You probably have seen 'foorRoot()' method a lot inside Angular application. Creating a configurable NgModule allows us do the configuration for each 阅读全文
posted @ 2017-05-12 03:37 Zhentiw 阅读(221) 评论(0) 推荐(0)
摘要: 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)
摘要: directive: test: 阅读全文
posted @ 2017-05-10 02:27 Zhentiw 阅读(387) 评论(0) 推荐(0)
摘要: For example, when testing container component we might import lots of children components, but we didn't actually testing those children components. S 阅读全文
posted @ 2017-05-09 23:54 Zhentiw 阅读(771) 评论(0) 推荐(0)
摘要: The main idea for testing contianer component is to make sure it setup everythings correctlly. Call the onInit() lifecycle first, then the variables h 阅读全文
posted @ 2017-05-09 23:49 Zhentiw 阅读(318) 评论(0) 推荐(0)
摘要: Component: Test: 阅读全文
posted @ 2017-05-09 23:16 Zhentiw 阅读(668) 评论(0) 推荐(0)
上一页 1 ··· 347 348 349 350 351 352 353 354 355 ··· 491 下一页