上一页 1 ··· 403 404 405 406 407 408 409 410 411 ··· 499 下一页
摘要: EventStream: You can use RxJS, BaconJS or any reactive programming lib you want: Here using BaconJS; we need to call onValue to subscribe stream. Futu 阅读全文
posted @ 2016-09-11 20:39 Zhentiw 阅读(258) 评论(0) 推荐(0)
摘要: IO functor doesn't like Maybe(), Either() functors. Instead of get a value, it takes a function. API: Examples: 阅读全文
posted @ 2016-09-09 03:45 Zhentiw 阅读(228) 评论(0) 推荐(0)
摘要: Traditionally you had to create DOM elements to test a directive but by shifting our focus to components, writing unit tests got a lot easier using $c 阅读全文
posted @ 2016-09-08 20:26 Zhentiw 阅读(328) 评论(0) 推荐(0)
摘要: Managing state is one of the hardest things to do in any application. Angular 2 tackles this problem by making it easy to implement a reactive, uni-di 阅读全文
posted @ 2016-09-08 18:04 Zhentiw 阅读(240) 评论(0) 推荐(0)
摘要: Jest comes pre-packaged with the ability to track code coverage for the modules you're testing, but it takes a little extra work to make it track unte 阅读全文
posted @ 2016-09-08 03:32 Zhentiw 阅读(323) 评论(0) 推荐(0)
摘要: Either Functor: Examples: 阅读全文
posted @ 2016-09-08 03:26 Zhentiw 阅读(358) 评论(0) 推荐(1)
摘要: In normal Javascript, we do undefine check or null check: Sometime backend data return may contain or not contain 'name' prop. So let's see how to def 阅读全文
posted @ 2016-09-07 04:00 Zhentiw 阅读(459) 评论(0) 推荐(0)
摘要: Well, this stuff will be a little bit strange if you deal with it first time. Container Object: Just a wrapper / contianer for values No Method No Nou 阅读全文
posted @ 2016-09-06 04:23 Zhentiw 阅读(380) 评论(0) 推荐(0)
摘要: In Angular 1.5 introduces "compoment" syntax. But ng-annotate doesn't understand ".compoment" syntax, that's why in min version, the code doesn't work 阅读全文
posted @ 2016-09-04 17:34 Zhentiw 阅读(308) 评论(0) 推荐(0)
摘要: Using R.tap: 阅读全文
posted @ 2016-09-04 02:58 Zhentiw 阅读(204) 评论(0) 推荐(0)
上一页 1 ··· 403 404 405 406 407 408 409 410 411 ··· 499 下一页