上一页 1 ··· 430 431 432 433 434 435 436 437 438 ··· 499 下一页
摘要: 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 阅读(233) 评论(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 阅读(921) 评论(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 阅读(602) 评论(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 阅读(776) 评论(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 阅读(2568) 评论(0) 推荐(0)
摘要: In this lesson we'll take our first look at the most common components available to us in react-router; Router, Route, and Link. 阅读全文
posted @ 2016-03-28 01:29 Zhentiw 阅读(588) 评论(0) 推荐(0)
摘要: Link: https://angular.io/docs/js/latest/api/core/OnInit-interface.html, https://www.youtube.com/watch?v=bY92HFyaBvo exported from angular2/core define 阅读全文
posted @ 2016-03-27 18:02 Zhentiw 阅读(1203) 评论(0) 推荐(0)
摘要: To use http, we need to import the HTTP_PROVIDER, so that we can inject http to other component: simple-request.ts: 阅读全文
posted @ 2016-03-25 04:02 Zhentiw 阅读(202) 评论(0) 推荐(0)
摘要: Handling state with Typescript enums, instead of booleans, is preferred because:- Enums are more readable- Enums can have as many states as you need w 阅读全文
posted @ 2016-03-25 00:31 Zhentiw 阅读(242) 评论(0) 推荐(0)
摘要: This lessons implements the Search Pipe with a new SearchBox component so you can search through each todo. It also demonstrates the patterns used for 阅读全文
posted @ 2016-03-23 03:45 Zhentiw 阅读(249) 评论(0) 推荐(0)
上一页 1 ··· 430 431 432 433 434 435 436 437 438 ··· 499 下一页