上一页 1 ··· 430 431 432 433 434 435 436 437 438 ··· 494 下一页
摘要: Refactoring streams in RxJS is mostly moving pieces of smaller streams around. This lessons demonstrates a simple refactoring by requiring the StopWat 阅读全文
posted @ 2016-03-11 03:34 Zhentiw 阅读(809) 评论(0) 推荐(0)
摘要: You often need to handle multiple user interactions set to different streams. This lesson shows hows Observable.merge behaves like a "logical OR" to h 阅读全文
posted @ 2016-03-11 00:27 Zhentiw 阅读(228) 评论(0) 推荐(0)
摘要: So now we want to replace one user when we click the 'x' button. To do that, we want: 1. Get the cached network data for generating the userList. 2. T 阅读全文
posted @ 2016-03-10 02:39 Zhentiw 阅读(347) 评论(0) 推荐(0)
摘要: You often need streams to trigger different behaviors on the data based on which streams triggers. This lessons shows how to use mapTo to pass functio 阅读全文
posted @ 2016-03-09 22:38 Zhentiw 阅读(281) 评论(0) 推荐(0)
摘要: You often need to render out data before you stream begins from a click or another user interaction. This lessons shows how to use startWith to set th 阅读全文
posted @ 2016-03-09 16:58 Zhentiw 阅读(257) 评论(0) 推荐(0)
摘要: You often need to update the data flowing through the stream with custom logic based on what you need to output. This lesson covers how to use scan fo 阅读全文
posted @ 2016-03-09 16:47 Zhentiw 阅读(280) 评论(0) 推荐(0)
摘要: Observables often need to be stopped before they are completed. This lesson shows how to use takeUntil to stop a running timer. Then we use the starti 阅读全文
posted @ 2016-03-09 16:32 Zhentiw 阅读(627) 评论(0) 推荐(0)
摘要: Currently we show three users in the list, it actually do three time network request, we can verfiy this by console out each network request: var resp 阅读全文
posted @ 2016-03-09 03:31 Zhentiw 阅读(351) 评论(0) 推荐(0)
摘要: In currently implemention, there is one problem, when the page load and click refresh button, the user list is not immediatly clean up,it is cleared a 阅读全文
posted @ 2016-03-09 03:18 Zhentiw 阅读(498) 评论(0) 推荐(0)
摘要: Now we want each time we click refresh button, we will get new group of users. So we need to get the refresh button click event stream: var refreshBut 阅读全文
posted @ 2016-03-08 19:31 Zhentiw 阅读(254) 评论(0) 推荐(0)
上一页 1 ··· 430 431 432 433 434 435 436 437 438 ··· 494 下一页