上一页 1 ··· 331 332 333 334 335 336 337 338 339 ··· 477 下一页
摘要: User input validation is a core part of creating proper HTML forms. Form validators not only help you to get better quality data but they also guide t 阅读全文
posted @ 2017-10-22 00:12 Zhentiw 阅读(261) 评论(0) 推荐(0)
摘要: Updated to AngularFire2 v5.0. One important change is that you need to call .snapshotChanges() or .valueChanges() to get data as Observable back. The 阅读全文
posted @ 2017-10-18 22:53 Zhentiw 阅读(414) 评论(0) 推荐(0)
摘要: In certain situations, you care more about the final state of the redux store than you do about the particular stream of events coming out of an epic. 阅读全文
posted @ 2017-10-17 19:34 Zhentiw 阅读(656) 评论(0) 推荐(0)
摘要: Often in unit tests we are focussing on the logic involved in crafting a network request, & how we respond to the result. The external service is unli 阅读全文
posted @ 2017-10-17 18:57 Zhentiw 阅读(1220) 评论(0) 推荐(0)
摘要: Epics can be unit-tested just like any other function in your application - they have a very specific set of inputs (the action$ stream) and the outpu 阅读全文
posted @ 2017-10-17 18:20 Zhentiw 阅读(240) 评论(0) 推荐(0)
摘要: With redux-observable, we have the power of RxJS at our disposal - this means tasks that would otherwise be complicated and imperative, become simple 阅读全文
posted @ 2017-10-16 00:30 Zhentiw 阅读(812) 评论(0) 推荐(0)
摘要: Imaging you are building a Tabs component. If looks like: You want to know which tab is clicked (actived). But you don't want this actived tab state b 阅读全文
posted @ 2017-10-13 19:06 Zhentiw 阅读(587) 评论(0) 推荐(0)
摘要: In this lesson we create a new Express web server app for handling file uploads and persisting them to the filesystem. We will walk through using the 阅读全文
posted @ 2017-10-12 23:52 Zhentiw 阅读(375) 评论(0) 推荐(0)
摘要: def myfunc(x, y, z): print(x, y, z) tuple_vec = (1, 0, 1) dict_vec = {'x': 1, 'y': 0, 'z': 1} >>> myfunc(*tuple_vec) 1, 0, 1 >>> myfunc(**dict_vec) 1, 0, 1 阅读全文
posted @ 2017-10-12 18:20 Zhentiw 阅读(281) 评论(0) 推荐(0)
摘要: The way to test router componet needs a little bit setup, first we need to create a "router-stubs.ts". This file is a helper file. The component we wa 阅读全文
posted @ 2017-10-12 15:48 Zhentiw 阅读(960) 评论(0) 推荐(0)
上一页 1 ··· 331 332 333 334 335 336 337 338 339 ··· 477 下一页