Directive हे असे क्लास आहेत जी DOM मधील elements ला वर्तन जोडतात किंवा संशोधित करतात. Angular मध्ये तीन प्रकार आहेत: components (template सह directive), structural directives (DOM layout बदलतात), आणि attribute directives (दृश्य/वर्तन बदलतात).
Structural directives — DOM रचना बदलतात
ते elements जोडतात किंवा काढतात आणि पूर्वलग्न आहे:
