摘要:
const curry = R.curry((fns, ary) => R.ap(fns, ary)); const applyMultiAndAdd = curry([R.multiply(2), R.add(3)]); const res = applyMultiAndAdd([1,2,3]); console.log(res); //[2, 4, 6, 4, 5, 6] const... 阅读全文
posted @ 2016-12-21 20:48
Zhentiw
阅读(293)
评论(0)
推荐(0)
摘要:
We find a couple of DOM nodes that may or may not exist and run a calculation on the page height using applicatives. For example we want to get the ma 阅读全文
posted @ 2016-12-21 18:15
Zhentiw
阅读(181)
评论(0)
推荐(0)
摘要:
Mapping the values of an observable to many inner observables is not the only way to create a higher order observable. RxJS also has operators that ta 阅读全文
posted @ 2016-12-21 17:31
Zhentiw
阅读(358)
评论(0)
推荐(0)
摘要:
A @Directive can also listen to events on their host element using @HostListener. This allows you to add behaviors that react to user input and update 阅读全文
posted @ 2016-12-21 04:19
Zhentiw
阅读(297)
评论(0)
推荐(0)
摘要:
The @Input decorator allows you to pass values into your @Directive so that you can change the value of the Directive each time that it is used. Using 阅读全文
posted @ 2016-12-21 04:03
Zhentiw
阅读(253)
评论(0)
推荐(0)
摘要:
Angular 2 Directives allow you manipulate elements by adding custom behaviors through attributes. This lesson covers how to create a Directive and att 阅读全文
posted @ 2016-12-21 03:53
Zhentiw
阅读(231)
评论(0)
推荐(0)

浙公网安备 33010602011771号