diff --git a/modules/angular2/src/common/forms/directives/select_control_value_accessor.ts b/modules/angular2/src/common/forms/directives/select_control_value_accessor.ts index bada98ae8c..d69cf32454 100644 --- a/modules/angular2/src/common/forms/directives/select_control_value_accessor.ts +++ b/modules/angular2/src/common/forms/directives/select_control_value_accessor.ts @@ -98,7 +98,7 @@ export class NgSelectOption implements OnDestroy { if (isPresent(this._select)) this.id = this._select._registerOption(); } - @Input('ng-value') + @Input('ngValue') set ngValue(value: any) { if (this._select == null) return; this._select._optionMap.set(this.id, value); diff --git a/modules/angular2/test/common/forms/integration_spec.ts b/modules/angular2/test/common/forms/integration_spec.ts index ba76d390b5..e37195a696 100644 --- a/modules/angular2/test/common/forms/integration_spec.ts +++ b/modules/angular2/test/common/forms/integration_spec.ts @@ -438,7 +438,7 @@ export function main() { (tcb: TestComponentBuilder, async) => { var t = `
`; @@ -470,7 +470,7 @@ export function main() { (tcb: TestComponentBuilder, async) => { var t = `
`; @@ -498,7 +498,7 @@ export function main() { (tcb: TestComponentBuilder, async) => { var t = `
`; tcb.overrideTemplate(MyComp, t).createAsync(MyComp).then((fixture) => { @@ -524,7 +524,7 @@ export function main() { (tcb: TestComponentBuilder, async) => { var t = `
`; @@ -554,7 +554,7 @@ export function main() { (tcb: TestComponentBuilder, async) => { var t = `
`; @@ -583,7 +583,7 @@ export function main() { (tcb: TestComponentBuilder, async) => { var t = `
`;