上一页 1 ··· 420 421 422 423 424 425 426 427 428 ··· 489 下一页
摘要: setRouteWillLeaveHook provides a method for us to intercept a route change before leaving the current route. setRouteWillLeaveHook provides a method f 阅读全文
posted @ 2016-03-31 14:41 Zhentiw 阅读(1648) 评论(0) 推荐(0)
摘要: The Redirect component in react-router does exactly what it sounds like. It allows us to redirect from from one route to another. The Redirect compone 阅读全文
posted @ 2016-03-30 13:46 Zhentiw 阅读(2728) 评论(0) 推荐(0)
摘要: Define query param in Link, accept path and query : Use Query param by props.location.query: 阅读全文
posted @ 2016-03-30 13:38 Zhentiw 阅读(1086) 评论(0) 推荐(0)
摘要: In this lesson we'll learn how to render multiple component children from a single route. Define a named component by "components": 'header' and 'body 阅读全文
posted @ 2016-03-29 13:23 Zhentiw 阅读(219) 评论(0) 推荐(0)
摘要: A router library is no good if we have to hardcode every single route in our application. In this lesson we look at how to access variables in our rou 阅读全文
posted @ 2016-03-29 12:58 Zhentiw 阅读(874) 评论(0) 推荐(0)
摘要: TodoList.ts: TodoItemRender.ts: Current we pass [todo] to the itemRender from List, we actually can give @Input('name'): TodoList.ts: TodoItemRender.t 阅读全文
posted @ 2016-03-28 23:47 Zhentiw 阅读(228) 评论(0) 推荐(0)
摘要: IndexRoute allows us to define a default child component to be rendered at a specific route when no other sub-route is available. When Home page displ 阅读全文
posted @ 2016-03-28 23:27 Zhentiw 阅读(912) 评论(0) 推荐(0)
摘要: Since react-router routes are components, creating nested routes is as simple as making one route a child of another in JSX. Make the nested component 阅读全文
posted @ 2016-03-28 23:19 Zhentiw 阅读(591) 评论(0) 推荐(0)
摘要: In this lesson we'll look at hashHistory which uses a hash hack to track our route changes vs browserHistory which delivers clean urls, but requires s 阅读全文
posted @ 2016-03-28 04:41 Zhentiw 阅读(767) 评论(0) 推荐(0)
摘要: react-router provides two props for setting a specific style on a Link component whose path matches our current route. activeStyle allows for an inlin 阅读全文
posted @ 2016-03-28 04:34 Zhentiw 阅读(2561) 评论(0) 推荐(0)
上一页 1 ··· 420 421 422 423 424 425 426 427 428 ··· 489 下一页