docs: fix syntax errors in HostBinding metadata example

add missing parentheses to getters, remove erroneous brackets in HostBindings

Closes #8269
This commit is contained in:
Drew Moore 2016-04-26 18:38:52 -07:00 committed by Misko Hevery
parent e8e61de28d
commit 1bff47f97d
1 changed files with 2 additions and 2 deletions

View File

@ -1418,8 +1418,8 @@ export var Output: OutputMetadataFactory = makePropDecorator(OutputMetadata);
* @Directive({selector: '[ngModel]'})
* class NgModelStatus {
* constructor(public control:NgModel) {}
* @HostBinding('[class.valid]') get valid { return this.control.valid; }
* @HostBinding('[class.invalid]') get invalid { return this.control.invalid; }
* @HostBinding('class.valid') get valid() { return this.control.valid; }
* @HostBinding('class.invalid') get invalid() { return this.control.invalid; }
* }
*
* @Component({