From 1bff47f97da4322293c722294b178d837005cfc5 Mon Sep 17 00:00:00 2001 From: Drew Moore Date: Tue, 26 Apr 2016 18:38:52 -0700 Subject: [PATCH] docs: fix syntax errors in HostBinding metadata example add missing parentheses to getters, remove erroneous brackets in HostBindings Closes #8269 --- modules/@angular/core/src/metadata.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/@angular/core/src/metadata.ts b/modules/@angular/core/src/metadata.ts index 174adbac3d..fa83bab0dd 100644 --- a/modules/@angular/core/src/metadata.ts +++ b/modules/@angular/core/src/metadata.ts @@ -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({