ਇਹ decorators ਇੱਕ directive ਜਾਂ component ਨੂੰ ਆਪਣੇ host element — ਜਿਸ element ਉੱਤੇ directive ਬੈਠਾ ਹੈ (ਜਾਂ component ਦਾ ਆਪਣਾ root element) — ਨੂੰ ਹੱਥ ਕਰਨ ਅਤੇ ਜਵਾਬ ਦੇਣ ਦੇ ਯੋਗ ਬਣਾਉਂਦੇ ਹਨ। @HostBinding host ਉੱਤੇ properties/attributes ਸੈੱਟ ਕਰਦਾ ਹੈ; @HostListener ਇਸ ਉੱਤੇ events ਸੁਣਦਾ ਹੈ।
@HostBinding — host properties/attributes ਨੂੰ bind ਕਰਨਾ
{ , } ;
({ : })
{
() isActive = ;
() color = ;
() role = ;
}
