上一页 1 ··· 436 437 438 439 440 441 442 443 444 ··· 480 下一页
摘要: An introduction to the Web Audio API. In this lesson, we cover creating an audio context and an oscillator node that actually plays a sound in the bro... 阅读全文
posted @ 2015-11-11 01:47 Zhentiw 阅读(251) 评论(0) 推荐(0) 编辑
摘要: How to work with JSON data indirectly through a Falcor Model. The Falcor Model allows you to work with data using the same familiar JavaScript path sy... 阅读全文
posted @ 2015-11-09 02:47 Zhentiw 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Use the Falcor Router to create a Virtual JSON resource. In this tutorial we will use Falcor’s express middleware to serve the Virtual JSON resource o... 阅读全文
posted @ 2015-11-09 02:34 Zhentiw 阅读(269) 评论(0) 推荐(0) 编辑
摘要: You can watch for form / control changes by using .valueChanges.observe({...}): this.sku.valueChanges.observer({ next: (value)=>{ ... 阅读全文
posted @ 2015-11-09 01:55 Zhentiw 阅读(462) 评论(0) 推荐(0) 编辑
摘要: Create a custom validtor which only accepts the string start with '123'; function skuValidator(control){ if(!control.value.match(/^123/)){ ... 阅读全文
posted @ 2015-11-09 01:48 Zhentiw 阅读(417) 评论(0) 推荐(0) 编辑
摘要: In last post, we need to create an instanse variable:sku: AbstructControl;We can get rid of this by getting the exported form from NgFormControl, what... 阅读全文
posted @ 2015-11-09 01:37 Zhentiw 阅读(350) 评论(0) 推荐(0) 编辑
摘要: Define a filed should has validation: export class DemoFormSku { myForm: ControlGroup; sku: AbstractControl; constructor(fb:FormBuilder) { this.myForm 阅读全文
posted @ 2015-11-06 04:04 Zhentiw 阅读(618) 评论(0) 推荐(0) 编辑
摘要: There are two main functions we’ll use on FormBuilder:•control - creates a new Control• group - creates a new ControlGroupimport {Component, bootstrap... 阅读全文
posted @ 2015-11-06 02:55 Zhentiw 阅读(610) 评论(0) 推荐(0) 编辑
摘要: Control:Controls encapsulate the field's value, a states such as if it is valid, dirty or has errors.var nameControl = new Control("Nate");var name = ... 阅读全文
posted @ 2015-11-06 02:40 Zhentiw 阅读(457) 评论(0) 推荐(0) 编辑
摘要: If you want to print someting like {{content}} on the html, using ng-non-bindable directive: 阅读全文
posted @ 2015-11-06 02:10 Zhentiw 阅读(371) 评论(0) 推荐(0) 编辑
上一页 1 ··· 436 437 438 439 440 441 442 443 444 ··· 480 下一页