摘要: ngrx/store is a library that simplifies common RxJS patterns for managing state and gives you an easy api to use it within your Angular 2 application. 阅读全文
posted @ 2016-04-26 19:02 Zhentiw 阅读(301) 评论(0) 推荐(0)
摘要: While you have multiple streams flowing into your scan operator, you'll need to map each stream to the specific values you need to update your state t 阅读全文
posted @ 2016-04-26 18:14 Zhentiw 阅读(201) 评论(0) 推荐(0)
摘要: The scan operator in RxJS is the main key to managing values and states in your stream. Scan behaves just as a reduce function would, but scan is able 阅读全文
posted @ 2016-04-26 03:48 Zhentiw 阅读(246) 评论(0) 推荐(0)
摘要: Observable.merge allows you take two different source streams and use either one of them to make changes to the same state of your data. This lesson s 阅读全文
posted @ 2016-04-26 03:32 Zhentiw 阅读(178) 评论(0) 推荐(0)
摘要: While Angular 2 usually uses event handlers to manage events and RxJS typically uses Observable.fromEvent, a good practice when using Angular 2 and Rx 阅读全文
posted @ 2016-04-26 03:26 Zhentiw 阅读(239) 评论(0) 推荐(0)
摘要: Instead of simply pushing numbers on a timer into the template, now we'll move on to pushing actual Dates. We'll still use the Async pipe, but we'll a 阅读全文
posted @ 2016-04-26 03:17 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: Angular 2 templates use a special Async pipe to be able to render out Observables. This lesson covers the syntax used to create an Observable in Angul 阅读全文
posted @ 2016-04-26 03:12 Zhentiw 阅读(762) 评论(0) 推荐(0)