Combine HostBinding with Services in Angular Directives

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

You can change behaviors of element and @Component properties based on services using @HostBinding in @Directives. This allows you to build @Directives which rely on services to change behavior without the @Component ever needing to know that the Service even exists.

ofir
~ 7 years ago

is the Hostlistener events remove OnDestroy ?

alf
~ 6 years ago

In the 5th lesson, the video stops in the middle while playing and shows this error. undefined. Exception: ERROR_LOADING