Angular
A TypeScript framework for building web apps from reusable pieces of interface called components. Angular includes tools for navigation, forms, and communicating with servers.
What Angular gives you
Say you're building an order dashboard. You need to show a list of orders, open an order at its own URL, and validate an address form before submitting it. Angular provides a router, a forms API, and an HTTP client, so the team doesn't have to choose and integrate separate libraries for each of those jobs.
The visible parts of the dashboard are components. An order list component might render a set of order row components, passing each one the data it needs. A component pairs a TypeScript class with an HTML template and, optionally, styles. The class holds state and behavior; the template describes what to display and how to respond to events.
How a component updates the page
This component stores whether a panel is open in a signal. The template reads that signal to set the button label and decide whether to render the panel.
import { Component, signal } from '@angular/core';
@Component({
selector: 'app-details',
standalone: true,
template: `
<button type="button" (click)="open.update(value => !value)">
{{ open() ? 'Hide details' : 'Show details' }}
</button>
@if (open()) {
<p>Orders ship within two business days.</p>
}
`,
})
export class DetailsComponent {
readonly open = signal(false);
}
(click) binds the button's click event, {{ }} renders a value as text, and @if controls whether a block exists in the view. When the signal changes, Angular updates the view without the component having to find or modify DOM nodes itself.
Where the rest of the code goes
Code such as fetching orders or sharing session state often lives in services rather than templates or UI components. A component can ask Angular for a service with inject(). Angular resolves that request using a provider, which lets a test supply a fake service without changing the component. Where a provider is registered matters: a service can be shared across the app or scoped to a component and its descendants.
Angular is often used for multi-screen web apps with substantial routing and forms. It can run as a client-rendered single-page app, but it also supports server-side rendering. Modern Angular is not AngularJS (1.x). You will also encounter two ways of organizing modern Angular code: standalone components declare their own template imports, while components declared in an NgModule get their template scope from that module.
What interviewers look for
Expect questions that trace a change from code to screen. For example, what happens if a parent mutates an object passed to an OnPush child? The reference hasn't changed, so the mutation alone won't trigger a check through that input. Other triggers still exist: an event in the child's subtree or a change to a signal read in its template can cause Angular to check the view.