இந்த டெகோரேட்டர்கள் ஒரு directive அல்லது component ஆனது அதன் host element — directive இருக்கும் element (அல்லது component இன் சொந்த root element) ஐ கையாளவும் பதிலளிக்கவும் அனுமதிக்கின்றன. @HostBinding host இல் properties/attributes ஐ அமைக்கிறது; @HostListener அதன் மீதான events ஐ கேட்கிறது.
@HostBinding — host properties/attributes ஐ bind செய்யவும்
{ , } ;
({ : })
{
() isActive = ;
() color = ;
() role = ;
}
