FlashKeepers

Web Development · College · College and University

Angular Fundamentals

Angular components, modules, services, dependency injection, templates, directives, RxJS observables, routing and signals.

About this set

35 basic cards for College Web Development. It opens with "What is an Angular component?" and "What decorator marks a class as an Angular component?". Study it alongside the other College sets below.

35 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is an Angular component?
Show answerA reusable building block combining a template, class, and metadata decorator
What decorator marks a class as an Angular component?
Show answer@Component
In @Component, what property specifies the HTML template?
Show answertemplateUrl or template
In @Component, what property specifies CSS styles?
Show answerstyleUrls or styles
What is component lifecycle in Angular?
Show answerA series of hooks called at key moments like init, change detection, and destroy
What is an Angular module?
Show answerA container for components, services, directives, and pipes grouped by functionality
What decorator marks a class as an Angular module?
Show answer@NgModule
Name the four main properties of @NgModule
Show answerdeclarations, imports, exports, providers
What is an Angular service?
Show answerA class providing functionality or data that can be shared across multiple components
What decorator marks a class as a service?
Show answer@Injectable
What does the providedIn property in @Injectable specify?
Show answerWhere the service should be registered (e.g., root, a specific module)
Why use services in Angular?
Show answerTo share logic and data across components and follow single-responsibility principle
What is dependency injection?
Show answerA design pattern where a class receives its dependencies from external sources
How do you inject a service into a component?
Show answerAdd it as a constructor parameter with the appropriate type
What is the purpose of the Injector in Angular?
Show answerTo create instances of services and automatically resolve their dependencies

20 more cards in the app

Study this set free