上一页 1 ··· 425 426 427 428 429 430 431 432 433 ··· 468 下一页
摘要: Optional ArgumentsSet default arguments, when we don't need to call it, we can simply skip it.def new_game(name, year=nil, system=nil) { name: nam... 阅读全文
posted @ 2015-11-02 02:52 Zhentiw 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1. Rails commends line:Example:rails new blog --skip-test-unit --database=postgresql 阅读全文
posted @ 2015-11-02 02:51 Zhentiw 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Nowdays, Single page apps are becoming increasingly popularamong the fornt-end developers. It is the time to say goodbye with refreshing the whole pag... 阅读全文
posted @ 2015-11-02 02:50 Zhentiw 阅读(471) 评论(0) 推荐(0) 编辑
摘要: To Currencyfunction toCurrency(price){ return price.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");}Deletion from Array:function deleteValues(a... 阅读全文
posted @ 2015-11-02 02:48 Zhentiw 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Besides @Input(), we can also use properties on the @Component, to pass the data.import {Component, View, NgFor, Input} from 'angular2/angular2';@Comp... 阅读全文
posted @ 2015-11-02 02:47 Zhentiw 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Inheritance is a way toindicate that a class receives behavior from a parent class. Then we can override, modify or augmentthose behaviors on the new ... 阅读全文
posted @ 2015-11-02 02:43 Zhentiw 阅读(329) 评论(0) 推荐(0) 编辑
摘要: Showing how to set up a Pipe that takes multiple updating inputs for multiple Component sources.import {Component, View, NgFor, FORM_DIRECTIVES} from ... 阅读全文
posted @ 2015-11-01 17:33 Zhentiw 阅读(370) 评论(0) 推荐(0) 编辑
摘要: This lesson shows you how to create a component and pass its properties as it updates into a Pipe to make a simple searchable list.import {Pipe} from ... 阅读全文
posted @ 2015-11-01 04:33 Zhentiw 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Explaining how Pipes only change by default when your Pipe input parameters change and not when your data changes. It also shows you how to make an “u... 阅读全文
posted @ 2015-11-01 03:41 Zhentiw 阅读(339) 评论(0) 推荐(0) 编辑
摘要: Showing you how you can expose properties on your Controller to access them using #refs inside of your template.// letterSelect.tsimport {Component, V... 阅读全文
posted @ 2015-11-01 03:33 Zhentiw 阅读(311) 评论(0) 推荐(0) 编辑
上一页 1 ··· 425 426 427 428 429 430 431 432 433 ··· 468 下一页