上一页 1 ··· 429 430 431 432 433 434 435 436 437 ··· 499 下一页
摘要: When you want to access child component's method, you can use @ViewChild in the parent: Parent Component: Child Component: 阅读全文
posted @ 2016-04-05 01:00 Zhentiw 阅读(451) 评论(0) 推荐(0)
摘要: Just like create html page, you can create a svg tag by: Inside svg, x,y: control the position of element fill: control the color of element height, w 阅读全文
posted @ 2016-04-04 00:34 Zhentiw 阅读(313) 评论(0) 推荐(0)
摘要: Async Pipe: The Asynce pipe receive a Promise or Observable as input and subscribes to the input, evetually emitting the value(s) changes arrive. In t 阅读全文
posted @ 2016-04-03 17:52 Zhentiw 阅读(375) 评论(0) 推荐(0)
摘要: Define a function type and params type: 阅读全文
posted @ 2016-04-01 20:38 Zhentiw 阅读(236) 评论(0) 推荐(0)
摘要: 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 阅读(1659) 评论(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 阅读(2735) 评论(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 阅读(1095) 评论(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 阅读(227) 评论(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 阅读(885) 评论(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 阅读(233) 评论(0) 推荐(0)
上一页 1 ··· 429 430 431 432 433 434 435 436 437 ··· 499 下一页