Angular glossary: Apprentice level

28 Angular terms at the Apprentice level, each with a short definition and a link to its full page.

Updated

Study these as flash cards

@for
Template syntax that repeats a block for every item in a list.
@if
Template syntax that shows a block only when a condition is true.
@Service
The Angular 22 decorator that marks a class as a service, with one instance shared by everyone who injects it.
@switch
Template syntax that shows one of several blocks based on a value.
Built-in Pipes
Ready-made pipes like date, currency, uppercase and json.
Class and Style Binding
Binding syntax that adds CSS classes or styles based on component values.
Content Projection
Passing HTML into a child component, which shows it where `<ng-content />` is.
Dependency Injection
Angular's system for handing classes the services they need.
Directive
An instruction attached to an element that changes how it looks or behaves.
HttpClient
Angular's service for calling web APIs.
inject()
The function that asks Angular for a service.
input()
Declares a value a parent component can pass into this component.
Lifecycle Hook
A method Angular calls at key moments, like when a component starts or is removed.
navigate()
The Router method that goes to another page from code, such as after a form is saved.
ngModel
The directive from FormsModule that ties a form field to a component value, usually as [(ngModel)].
ngOnDestroy
The lifecycle hook Angular calls just before a component is removed; used to stop timers and clean up.
ngOnInit
The lifecycle hook that runs once when a component is ready; often used to load data.
output()
Declares an event that a component sends up to its parent.
Pipe
A template formatter used with `|`, such as for dates or prices.
Route
A mapping from a URL path to the component to show.
Router
The part of Angular that shows different components for different URLs.
Router Outlet
The placeholder where the router shows the current route's component.
routerLink
A directive that makes an element navigate to another route without a page reload.
routerLinkActive
A directive that adds a CSS class to a link while the link's page is showing.
Service
A shared class for logic or data used by many components.
Template Reference Variable
A `#name` label on an element so the template can refer to it.
Two-Way Binding
The `[( )]` syntax that keeps a field and a component value in sync both ways.
Wildcard Route
The ** route that matches any address; put last, it shows a page-not-found page.

Every Angular term, by level