Angular Directives Task
Angular Directives Task
Overview:
Requirements:
○ Name
○ Standard
○ Gender
○ Age
○ Enrollment Number
○ Grade (A,B,C,D,E,F)
○ Status(Pass/Fail)
○ A: “Excellent!”
○ B: “Good!”
○ C: “Needs Improvement”
○ Any other grade: “No remarks”
○ Use color cues (e.g., green for success, red for failure).
○ Apply text styles (e.g., bold, italic) based on grade or other characteristics.
● Each student card should have a “Show Details” button, which toggles visibility of
additional info (e.g., age, gender, contact info).
● Write your understanding on the trackbyFn function which will be used in ngfor directive
into the app.component.ts file with comments like how you did for previous tasks.
● Get an idea of the below problem as discussed:-
○ <p>
○ <span class="yellow-color" [ngClass]="{'btn-success': true}"
class="btn"></span>
○ </p>
Tips:
● Keep styles organized using component CSS, Tailwind, Bootstrap, or any styling method
you prefer.