上一页 1 ··· 451 452 453 454 455 456 457 458 459 ··· 494 下一页
摘要: If you want to print someting like {{content}} on the html, using ng-non-bindable directive: 阅读全文
posted @ 2015-11-06 02:10 Zhentiw 阅读(381) 评论(0) 推荐(0)
摘要: 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 阅读(228) 评论(0) 推荐(0)
摘要: 1. Rails commends line:Example:rails new blog --skip-test-unit --database=postgresql 阅读全文
posted @ 2015-11-02 02:51 Zhentiw 阅读(207) 评论(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 阅读(486) 评论(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 阅读(331) 评论(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 阅读(302) 评论(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 阅读(337) 评论(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 阅读(380) 评论(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 阅读(343) 评论(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 阅读(352) 评论(0) 推荐(0)
上一页 1 ··· 451 452 453 454 455 456 457 458 459 ··· 494 下一页