The host property of the Directive decorator in Angular

Опубликовано: 21 Март 2026
на канале: Юрий Симонов
753
45

In this video, we'll explore the host property of the @Directive() decorator. We'll also look at examples of how this property allows you to control the styles and behavior of components.

Support me on Boosty:
https://boosty.to/yuri_simonov

Timings:
00:00 Introduction
00:12 The host property
00:26 Static record variants
02:58 Dynamic record variants
05:20 Using variables
06:48 Defining logic
09:23 The host property in components
10:24 What else can host do
10:52 Summary

Link to this course's GitHub repository:
https://github.com/Yuri-Simonov/My-An...

Link to this course's Angular playlist:
   • Angular курс для начинающих | Angular уроки  

My Telegram channel IT:
https://t.me/yuri_simonov_it

Link to the Helper project:
https://yuri-simonov.github.io/Helper/

Helper project chat:
https://t.me/yuri_simonov_helper

Contact me:
https://t.me/dancerdied

Link to the official documentation of the materials in the video:
host: https://v17.angular.io/api/core/Direc...