上一页 1 ··· 374 375 376 377 378 379 380 381 382 ··· 491 下一页
摘要: There are variants of the window operator that allow you to split RxJS observables in different ways. In this lesson we will explore the windowToggle 阅读全文
posted @ 2016-12-22 21:48 Zhentiw 阅读(411) 评论(0) 推荐(0)
摘要: Structural directives enable you to use an element as a template for creating additional elements. Creating structural directives requires a knowledge 阅读全文
posted @ 2016-12-22 21:20 Zhentiw 阅读(252) 评论(0) 推荐(0)
摘要: We take our Promise.all() analogy further by using traversable on a Map(). Then we use two traversals in the same workflow. Traverse is good for maint 阅读全文
posted @ 2016-12-22 20:38 Zhentiw 阅读(186) 评论(0) 推荐(0)
摘要: You can change behaviors of element and @Component properties based on services using @HostBinding in @Directives. This allows you to build @Directive 阅读全文
posted @ 2016-12-22 17:07 Zhentiw 阅读(557) 评论(0) 推荐(0)
摘要: A @Directive is used to add behavior to elements and components in your application. This makes @Directives ideal for behaviors such as "tracking" whi 阅读全文
posted @ 2016-12-22 17:05 Zhentiw 阅读(271) 评论(0) 推荐(0)
摘要: 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 阅读(291) 评论(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 阅读(179) 评论(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 阅读(353) 评论(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 阅读(294) 评论(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 阅读(252) 评论(0) 推荐(0)
上一页 1 ··· 374 375 376 377 378 379 380 381 382 ··· 491 下一页