Question: Explain Angular directives.Answer: Directives in Angular are markers on DOM elements that tell Angular to attach behavior to a DOM element or transform the DOM element and its children. Examples include ngIf, ngFor, and ngStyle.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: