Angular patterns — standalone components, signals, inject(), reactive forms, HTTP interceptors, and new control flow
95
94%
Does it follow best practices?
Impact
99%
2.75xAverage score across 4 eval scenarios
Passed
No known issues
Build an employee directory page in Angular. The page fetches a list of staff members from a REST API (GET /api/employees) and displays them as cards. Each card shows the employee's name, job title, department, and avatar image.
Add a search bar at the top that filters the visible cards in real time as the user types (client-side filtering by name or department).
{
"data": [
{
"id": 1,
"name": "Alice Park",
"title": "Staff Engineer",
"department": "Platform",
"avatarUrl": "/avatars/alice.png"
}
]
}Produce TypeScript files in a src/app/ directory:
src/app/employees/employee.model.ts -- TypeScript type definitionssrc/app/employees/employee.service.ts -- service to fetch employees from the APIsrc/app/employees/employee-list.component.ts -- page component with search and card gridsrc/app/employees/employee-card.component.ts -- presentational card componentDo not include test files or build configuration.