Directives हरू क्लासहरू हुन् जसले DOM मा elements को व्यवहार जोड गर्छ वा परिवर्तन गर्छ। Angular सँग तीन किसिमका directives छन्: components (template सहितको directives), structural directives (DOM layout परिवर्तन गर्छ), र attribute directives (दिखावट/व्यवहार परिवर्तन गर्छ)।
Structural directives — DOM संरचना परिवर्तन गर्छ
तिनीहरू elements जोड वा हटाउँछन्, र को साथ prefix गरिन्छ:
