Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.
Exam details
Angular is a TypeScript-based front-end framework developed by Google for building dynamic, single-page applications (SPAs). It provides a comprehensive solution including components, services, routing, and dependency injection out of the box.
A component is the fundamental building block of an Angular application. It consists of:
@Component()selector, templateUrl, and styleUrlsThe @Component() decorator marks a class as an Angular component and provides metadata that tells Angular how to process, instantiate, and use the component at runtime. Key properties include:
selector – the custom HTML tagtemplateUrl – path to the HTML templatestyleUrls – array of stylesheetsData binding is a mechanism that connects the component class to the template. Angular supports four forms:
{{ expression }}[property]="expression"(event)="handler()"[(ngModel)]="property"A service is a class decorated with @Injectable() that encapsulates reusable business logic, data access, or utility functions. Services are typically singletons when provided at the root level and are shared across components via dependency injection.