摘要: forkJoin: When all observables complete emit the last value from each. 阅读全文
posted @ 2017-03-21 23:59 Zhentiw 阅读(474) 评论(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 阅读(350) 评论(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 阅读(423) 评论(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 阅读(275) 评论(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 阅读(382) 评论(0) 推荐(0)
摘要: With React Router v4 the entire library is built as a series of React components. That means that creating nested Routes is as simple as creating any 阅读全文
posted @ 2017-03-21 19:31 Zhentiw 阅读(264) 评论(0) 推荐(0)
摘要: React Router v4 ignores query parameters entirely. That means that it is up to you to parse them so that you can use that additional information as re 阅读全文
posted @ 2017-03-21 19:19 Zhentiw 阅读(350) 评论(0) 推荐(0)
摘要: We can use regular expressions to more precisely define the paths to our routes in React Router v4. To add regex for router, we only need to add (), i 阅读全文
posted @ 2017-03-21 16:42 Zhentiw 阅读(357) 评论(0) 推荐(0)
摘要: URLs can be looked at as the gateway to our data, and carry a lot of information that we want to use as context so that the user can return to a parti 阅读全文
posted @ 2017-03-21 16:35 Zhentiw 阅读(253) 评论(0) 推荐(0)
摘要: We often need to be able to apply style to navigation links based on the current route. In React Router v4 you can easily accomplish this with the Nav 阅读全文
posted @ 2017-03-21 04:10 Zhentiw 阅读(466) 评论(0) 推荐(0)
摘要: 'FormArray' can work with array of 'FormGroup' or 'FormControl'. So for Javascript, we have a 'form=new FormGroup()', inside formGoup, we have a 'stoc 阅读全文
posted @ 2017-03-21 03:32 Zhentiw 阅读(578) 评论(0) 推荐(0)