Skip to the page

Angular · 25 concepts

Angular

Modern Angular for interviews: standalone components, signals, RxJS, forms, routing, state, production work and testing.

Asked in these mock interviews

Part 1 · 4 concepts

Components and templates

  1. 01

    Standalone components and NgModules

    A standalone component lists its own imports, so each file shows what it uses. NgModules are the older way and still appear in old code and in interviews.

  2. 02

    Built-in control flow, track and pipes

    The built-in @if, @for and @switch blocks replaced *ngIf and *ngFor in new code. @for needs track, and a pure pipe is the right place for template formatting.

  3. 03

    Passing data between components and lifecycle hooks

    Data goes down with inputs and up with outputs, and two-way with model(). Lifecycle hooks run in a fixed order, and API calls do not belong in the constructor.

  4. 04

    Content projection, style scoping and directives

    Content projection lets a parent put markup inside a child. View encapsulation scopes styles to one component. A directive adds behaviour to an existing element.

Part 2 · 3 concepts

Dependency injection and change detection

  1. 05

    Dependency injection and inject()

    A provider decides how many instances of a service exist. inject() works only inside an injection context.

  2. 06

    Change detection: Zone.js and zoneless

    Change detection re-reads template bindings and updates the DOM. With Zone.js Angular checks after any async task. Zoneless apps check only when told, for example by a…

  3. 07

    OnPush, Eager and ExpressionChangedAfterItHasBeenChecked

    OnPush checks a component only when an input changes by reference, an event happens in it, or a signal it reads changes. In v22 OnPush is the default and the old…

Part 3 · 3 concepts

Signals

  1. 08

    signal, computed and effect

    A signal holds a value you read by calling it. A computed is a lazy, cached value derived from signals. An effect runs a side effect when signals change.

  2. 09

    Signal inputs, linkedSignal and avoiding effect copies

    Signal inputs are read with a call and only after Angular sets them. Derived values use computed; a derived value that the user can also change uses linkedSignal.

  3. 10

    httpResource, and signals or RxJS

    httpResource loads data from a signal-based URL and gives signals for loading, error and value. Choose signals for UI state and RxJS for streams over time.

Part 4 · 3 concepts

RxJS

  1. 11

    Observables, cold and hot, subjects and shareReplay

    An Observable is lazy and cold: each subscriber starts its own work. Subjects multicast. shareReplay shares one subscription and replays the last value.

  2. 12

    switchMap, mergeMap, concatMap, exhaustMap and the typeahead

    The four operators map each value to an inner Observable. They differ in what happens when a new value arrives while the old inner one still runs.

  3. 13

    Subscription leaks, errors, forkJoin and polling

    Know which subscriptions never end, that an error ends an Observable, what forkJoin waits for, and how to poll safely.

Part 5 · 4 concepts

Forms, routing and HTTP

  1. 14

    Reactive, template-driven and typed forms with validators

    Reactive forms keep the model in the class and are synchronous and typed. Know value versus getRawValue() and how to write cross-field and async validators.

  2. 15

    Signal forms

    Signal forms (stable in v22) build a form from a signal model and a schema of validation rules.

  3. 16

    Functional guards, resolvers and lazy-loaded routes

    Functional guards decide if a route may open. canMatch stops the lazy code from loading at all. Lazy routes split the bundle.

  4. 17

    Functional HTTP interceptors and token refresh

    An interceptor is a function that can change every request or response. A token refresh must run once, with every waiting call sharing it.

Part 6 · 2 concepts

State management

  1. 18

    Where state lives: signal services and large app design

    Sort state by kind, then give each kind one home. A root service with signals covers most apps.

  2. 19

    NgRx Store, effects and Signal Store

    NgRx Store uses actions, reducers, selectors and effects. NgRx 22 also includes the Signal Store (facts.md), a lighter option.

Part 7 · 6 concepts

Production and testing

  1. 20

    Finding slow screens: change detection, memory and big lists

    Measure first. Typical causes are endless change detection, leaked subscriptions and rendering thousands of rows.

  2. 21

    Bundle size, @defer, server rendering and hydration

    Measure the bundle, lazy load what is not needed first, defer parts of templates, and keep server and browser DOM equal for hydration.

  3. 22

    Upgrading Angular and moving from AngularJS

    Upgrade one major version at a time with a plan. Moving from AngularJS is a rewrite, not an upgrade.

  4. 23

    Security: sanitising and bypassSecurityTrust

    Angular treats every value as untrusted. Bypassing sanitising is a security decision that needs a review.

  5. 24

    Testing components and services with TestBed

    TestBed builds a component with real or fake dependencies. Tests must wait correctly, use fake timers, and test HTTP with the testing controller.

  6. 25

    Vitest, Karma migration and component harnesses

    Vitest is the default test runner since v21. Component harnesses give stable test APIs instead of library CSS classes.

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview