上一页 1 ··· 364 365 366 367 368 369 370 371 372 ··· 477 下一页
摘要: Create an app with routing config: If you want to generate a new module with routing , you can also do: Define env variable: You can create a custom e 阅读全文
posted @ 2017-03-23 21:48 Zhentiw 阅读(257) 评论(0) 推荐(0)
摘要: If a user has entered some input, or the current Route is in a “dirty” state and we want to confirm that data will be lost, React Router v4 provides a 阅读全文
posted @ 2017-03-23 04:35 Zhentiw 阅读(428) 评论(0) 推荐(0)
摘要: Overriding a browser's current location without breaking the back button or causing an infinite redirect can be tricky sometimes. In this lesson we'll 阅读全文
posted @ 2017-03-23 04:13 Zhentiw 阅读(423) 评论(0) 推荐(0)
摘要: If you want to reset or just update field value, you can do: reset: reset({key: value, k2:v2}); update: 1. patchValue({k: v}); update part of form fie 阅读全文
posted @ 2017-03-22 19:59 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: For example we have built a form: We want to reponse to each time 'stock' value changes. To do that we can subscrube 'valueChanges' for form. Notice t 阅读全文
posted @ 2017-03-22 19:48 Zhentiw 阅读(352) 评论(0) 推荐(0)
摘要: forkJoin: When all observables complete emit the last value from each. 阅读全文
posted @ 2017-03-21 23:59 Zhentiw 阅读(502) 评论(0) 推荐(0)
摘要: Using FormBuilder API can simply our code, for example we want to refactor following code by using FormBuilder: First thing we need to do is actually 阅读全文
posted @ 2017-03-21 23:41 Zhentiw 阅读(380) 评论(0) 推荐(0)
摘要: React Router v4 allows us to render Routes as components wherever we like in our components. This can provide some interesting use cases for creating 阅读全文
posted @ 2017-03-21 19:55 Zhentiw 阅读(449) 评论(0) 推荐(0)
摘要: We often want to render a Route conditionally within our application. In React Router v4, the Route components match the current route inclusively so 阅读全文
posted @ 2017-03-21 19:49 Zhentiw 阅读(302) 评论(0) 推荐(0)
摘要: There are many cases where we will need a catch-all route in our web applications. This can include 404-style routes when nothing is match or other us 阅读全文
posted @ 2017-03-21 19:40 Zhentiw 阅读(404) 评论(0) 推荐(0)
上一页 1 ··· 364 365 366 367 368 369 370 371 372 ··· 477 下一页