docs(cheatsheet): correct HostBinding decorator example (#13206)

This commit is contained in:
Sarun Rattanasiri 2016-12-06 01:25:40 +07:00 committed by Alex Rickabaugh
parent d2e5198b93
commit b8c839bd51
1 changed files with 3 additions and 3 deletions

View File

@ -27,10 +27,10 @@ Declares an output property that fires events that you can subscribe to with an
@cheatsheetItem @cheatsheetItem
syntax(ts): syntax(ts):
`@HostBinding('[class.valid]') isValid;`|`@HostBinding('[class.valid]')` `@HostBinding('class.valid') isValid;`|`@HostBinding('class.valid')`
syntax(js): syntax(js):
`ng.core.HostBinding('[class.valid]', `ng.core.HostBinding('class.valid',
'isValid', myComponent);`|`ng.core.HostBinding('[class.valid]', 'isValid'`|`);` 'isValid', myComponent);`|`ng.core.HostBinding('class.valid', 'isValid'`|`);`
description: description:
Binds a host element property (here, the CSS class `valid`) to a directive/component property (`isValid`). Binds a host element property (here, the CSS class `valid`) to a directive/component property (`isValid`).