上一页 1 ··· 353 354 355 356 357 358 359 360 361 ··· 498 下一页
摘要: Learn how to use the ‘withProps’ higher order component to pre-fill a prop, unable to be overridden. withProps, take string as arguement for creating 阅读全文
posted @ 2017-05-15 03:42 Zhentiw 阅读(342) 评论(0) 推荐(0)
摘要: Learn how to use the 'mapProps' higher-order component to modify an existing component’s API (its props). 'mapProps' takes incoming props and changes 阅读全文
posted @ 2017-05-15 03:30 Zhentiw 阅读(286) 评论(0) 推荐(0)
摘要: Learn how to use the 'lifecycle' higher-order component to conveniently use hooks without using a class component. 阅读全文
posted @ 2017-05-15 03:06 Zhentiw 阅读(398) 评论(0) 推荐(0)
摘要: Learn how to use the 'withReducer' higher order component using the alternative reducer form. If you like using reducers in redux, you’ll be able to r 阅读全文
posted @ 2017-05-14 18:38 Zhentiw 阅读(292) 评论(0) 推荐(0)
摘要: Learn how to use the 'withState' and 'withHandlers' higher order components to easily add local state to—and create a reusable local state pattern for 阅读全文
posted @ 2017-05-14 05:04 Zhentiw 阅读(285) 评论(0) 推荐(0)
摘要: 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 阅读(1765) 评论(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 阅读(240) 评论(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 阅读(224) 评论(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 阅读(1086) 评论(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 阅读(1240) 评论(0) 推荐(0)
上一页 1 ··· 353 354 355 356 357 358 359 360 361 ··· 498 下一页