上一页 1 ··· 420 421 422 423 424 425 426 427 428 ··· 494 下一页
摘要: RxJS allows you to combine streams in various ways. This lesson shows you how to take a click stream and combine it with a store stream to use a value 阅读全文
posted @ 2016-04-28 04:10 Zhentiw 阅读(210) 评论(0) 推荐(0)
摘要: Reducers are also often used for changing a single property inside of other reducers. This lesson shows how a type can enter the people reducer, but t 阅读全文
posted @ 2016-04-28 03:53 Zhentiw 阅读(264) 评论(0) 推荐(0)
摘要: Add another reducer: Added a 'people' reducer, defined a 'defaultPeople' as default state. In bootstrap, add people reducer to the provideStore(). The 阅读全文
posted @ 2016-04-27 21:06 Zhentiw 阅读(213) 评论(0) 推荐(0)
摘要: The components inside of your container components can easily accept Observables. You simply define your custom @Input then use the Async pipe when yo 阅读全文
posted @ 2016-04-27 02:31 Zhentiw 阅读(578) 评论(0) 推荐(0)
摘要: Angular 2 allows you to pass values from inputs simply by referencing them in the template and passing them into your Subject.next() call. This lesson 阅读全文
posted @ 2016-04-27 02:00 Zhentiw 阅读(212) 评论(0) 推荐(0)
摘要: While action types allow you tell your reducer what action it should take, the payload is the data that your reducer will use to update the state. 阅读全文
posted @ 2016-04-27 01:52 Zhentiw 阅读(309) 评论(0) 推荐(0)
摘要: 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)
上一页 1 ··· 420 421 422 423 424 425 426 427 428 ··· 494 下一页