angular2 checkbox formcontrol
问题 For a simple checkbox with a string value bound to a FormControl: export class CheckboxComponent { formControl: FormControl; option: {value: string}; constructor() { this.formControl = new FormControl(); this.option = {value: "MyValue"}; this.formControl.valueChanges.subscribe(console.log); } } <input type="checkbox" [formControl]="formControl" [value]="option.value" name="SomeName" /> The output of the subscribe is true, false, true, false.... I want the angular 2 to bind the string value