export class HostBindingMetadata
export class HostBindingMetadata
exported from angular2/core defined in angular2/src/core/metadata/directives.ts (line 1053)
Declares a host property binding.
Angular automatically checks host property bindings during change detection. If a binding changes, it will update the host element of the directive.
HostBindingMetadata
takes an optional parameter that specifies the property
name of the host element that will be updated. When not provided,
the class property name is used.
Example
The following example creates a directive that sets the valid
and invalid
classes
on the DOM element that has ngModel directive on it.
Constructor
constructor(hostPropertyName?: string)
constructor(hostPropertyName?: string)
Not Yet Documented
Members
hostPropertyName : string
hostPropertyName : string
Not Yet Documented