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:
parent
e8e61de28d
commit
1bff47f97d
|
@ -1418,8 +1418,8 @@ export var Output: OutputMetadataFactory = makePropDecorator(OutputMetadata);
|
||||||
* @Directive({selector: '[ngModel]'})
|
* @Directive({selector: '[ngModel]'})
|
||||||
* class NgModelStatus {
|
* class NgModelStatus {
|
||||||
* constructor(public control:NgModel) {}
|
* constructor(public control:NgModel) {}
|
||||||
* @HostBinding('[class.valid]') get valid { return this.control.valid; }
|
* @HostBinding('class.valid') get valid() { return this.control.valid; }
|
||||||
* @HostBinding('[class.invalid]') get invalid { return this.control.invalid; }
|
* @HostBinding('class.invalid') get invalid() { return this.control.invalid; }
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* @Component({
|
* @Component({
|
||||||
|
|
Loading…
Reference in New Issue