上一页 1 ··· 323 324 325 326 327 328 329 330 331 ··· 492 下一页
摘要: /* list of strings */ let _ = ["example-1", "example-2", "example-3"]; /* Array of strings */ let _ = [|"example-1", "example-2", "example-3"|]; /* Stating the type of a Reason record */ type event... 阅读全文
posted @ 2017-10-28 01:57 Zhentiw 阅读(351) 评论(0) 推荐(0)
摘要: // ::country is named param // ::country=?: which make it optional // because we make ::country=? optional named param, we may pass in or may not pass in // we need use '()' --> (): string => , which... 阅读全文
posted @ 2017-10-28 01:55 Zhentiw 阅读(218) 评论(0) 推荐(0)
摘要: For example, we want to use moment.js inside our ReasonML code. What we can do is create a module file: Using it inside component: 阅读全文
posted @ 2017-10-28 01:52 Zhentiw 阅读(313) 评论(0) 推荐(0)
摘要: Register a account on https://console.dialogflow.com/api-client/ "Creat a intent" -- you can custom your message here. "Small Talks" -- the default me 阅读全文
posted @ 2017-10-24 03:38 Zhentiw 阅读(881) 评论(1) 推荐(0)
摘要: The upload class will be used in the service layer. Notice it has a constructor for file attribute, which has a type of File. This will allows us to i 阅读全文
posted @ 2017-10-22 01:57 Zhentiw 阅读(791) 评论(0) 推荐(0)
摘要: 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 阅读(234) 评论(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 阅读(377) 评论(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 阅读(626) 评论(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 阅读(1186) 评论(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 阅读(216) 评论(0) 推荐(0)
上一页 1 ··· 323 324 325 326 327 328 329 330 331 ··· 492 下一页