From b8c839bd515321d76827d8cb19128b42120c9b41 Mon Sep 17 00:00:00 2001 From: Sarun Rattanasiri Date: Tue, 6 Dec 2016 01:25:40 +0700 Subject: [PATCH] docs(cheatsheet): correct HostBinding decorator example (#13206) --- .../docs/cheatsheet/directive-and-component-decorators.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/@angular/docs/cheatsheet/directive-and-component-decorators.md b/modules/@angular/docs/cheatsheet/directive-and-component-decorators.md index ab6b649ee3..be6d2dc711 100644 --- a/modules/@angular/docs/cheatsheet/directive-and-component-decorators.md +++ b/modules/@angular/docs/cheatsheet/directive-and-component-decorators.md @@ -27,10 +27,10 @@ Declares an output property that fires events that you can subscribe to with an @cheatsheetItem syntax(ts): -`@HostBinding('[class.valid]') isValid;`|`@HostBinding('[class.valid]')` +`@HostBinding('class.valid') isValid;`|`@HostBinding('class.valid')` syntax(js): -`ng.core.HostBinding('[class.valid]', - 'isValid', myComponent);`|`ng.core.HostBinding('[class.valid]', 'isValid'`|`);` +`ng.core.HostBinding('class.valid', + 'isValid', myComponent);`|`ng.core.HostBinding('class.valid', 'isValid'`|`);` description: Binds a host element property (here, the CSS class `valid`) to a directive/component property (`isValid`).