Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

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:

This is visible
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook