Which of the following is the primary building block of an Angular application?
- Component
- Directive
- Module
- Service
In Angular, a component controls a patch of the screen called a view. Components are the main way to build and specify elements and logic on the page, making them the primary building block of an Angular application.
Loading...
Related Quiz
- An application you're working on requires form fields to be validated against data from a backend API. How would you achieve this in Angular?
- For creating a custom structural directive in Angular, the directive class should implement the _____ method.
- When creating hierarchical injectors, child injectors can ________ services from parent injectors.
- Which decorator is used to declare a class as an Angular component?
- When configuring the Angular Router for lazy loading, the loadChildren property points to a function that uses the ______ syntax to load the module.