摘要: Let's use a range of events and their modifiers to look at the cool ways we can deal with event handlers in Vue. Using '@' replace 'v-on' @submit.prev 阅读全文
posted @ 2017-01-19 20:37 Zhentiw 阅读(143) 评论(0) 推荐(0)
摘要: We don't always control the data we need in our applications, and that means we often find ourselves massaging and transforming our data. In this less 阅读全文
posted @ 2017-01-19 16:36 Zhentiw 阅读(201) 评论(0) 推荐(0)
摘要: The data contained in this.props.children is not always what you might expect. React provides React.children to allow for a more consistent developmen 阅读全文
posted @ 2017-01-19 15:33 Zhentiw 阅读(231) 评论(0) 推荐(0)
摘要: import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/throw'; updatePassenger(passenger: Passenger): Observabl... 阅读全文
posted @ 2017-01-19 15:07 Zhentiw 阅读(680) 评论(0) 推荐(0)