上一页 1 ··· 395 396 397 398 399 400 401 402 403 ··· 492 下一页
摘要: First, What is directive, what is the difference between component and directive. For my understanding, component is something like 'canvas', 'form', 阅读全文
posted @ 2016-09-14 04:57 Zhentiw 阅读(974) 评论(0) 推荐(0)
摘要: The application is simple, to build a color picker: When click the rect box, it will check the color value below and title color will also change. col 阅读全文
posted @ 2016-09-14 01:44 Zhentiw 阅读(2085) 评论(0) 推荐(0)
摘要: Create a index.html: Index.html works as an App Shell, which render meanful pixel onto the screen. And our module will be rendered when the data bindi 阅读全文
posted @ 2016-09-13 15:22 Zhentiw 阅读(326) 评论(0) 推荐(0)
摘要: Monads allow you to nest computations. They are a pointed functor that adds mjoin and chain functions to combine other functors. Brian shows a number 阅读全文
posted @ 2016-09-12 04:04 Zhentiw 阅读(328) 评论(0) 推荐(0)
摘要: Functor laws: 1. Identity: 2. Composition: Natural Transformations: "Takes one functor to another without knowing anything about the value". 阅读全文
posted @ 2016-09-12 03:38 Zhentiw 阅读(193) 评论(0) 推荐(0)
摘要: 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 阅读(238) 评论(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 阅读(206) 评论(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 阅读(310) 评论(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 阅读(229) 评论(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 阅读(296) 评论(0) 推荐(0)
上一页 1 ··· 395 396 397 398 399 400 401 402 403 ··· 492 下一页