PrepStack › Frontend › Angular

Angular interview cheat sheet

Components, DI, signals, RxJS, change detection, routing and forms

Angular interviews test whether you understand how the framework works, not just its syntax: standalone components, data binding, dependency injection and hierarchical injectors, change detection (OnPush, zone.js, zoneless), signals and RxJS. Expect scenario questions on switchMap vs mergeMap, memory leaks, guards, lazy loading, typed forms and performance. Content targets modern Angular (v17–v20 features, with notes on v21–v22 defaults). Read the 15-minute revision first, then use Quiz mode and answer out loud.

15-minute revision

  1. Components are standalone by default since v19. They import what their template uses via imports: [...]. Apps start with bootstrapApplication(App, appConfig) and provide*() functions instead of an AppModule.
  2. Binding types: interpolation {{ x }}, property [prop], event (event), two-way [(ngModel)] / [(value)] (banana in a box), plus [attr.x], [class.x], [style.x].
  3. Built-in control flow: @if / @else, @for (x of xs; track x.id) with @empty, @switch, and @defer for lazy chunks. track is required in @for. *ngIf/*ngFor are deprecated since v20.
  4. Directives: component (has a template), attribute (changes look/behaviour of a host element, e.g. ngClass), structural (adds/removes DOM via <ng-template>, the * syntax).
  5. Pipes are pure by default: they re-run only when the input reference (or a primitive value) changes. Impure pipes (pure: false, e.g. async, json) run on every change detection pass.
  6. Communication: parent→child with input(), child→parent with output(), two-way with model(), parent reads child with viewChild(), unrelated components share a service (signal or Subject).
  7. Lifecycle order: constructor → ngOnChanges → ngOnInit → ngDoCheck → ngAfterContentInit/Checked → ngAfterViewInit/Checked → ngOnDestroy. Use DestroyRef and afterNextRender in modern code.
  8. DI: @Injectable({ providedIn: 'root' }) gives a tree-shakable app-wide singleton. inject() works only in an injection context (constructor, field initialiser, factory). Lookup goes element injectors up the DOM, then environment injectors up to root, then NullInjectorError.
  9. Providers: useClass, useValue, useFactory, useExisting, plus multi: true. Use InjectionToken for non-class values like config.
  10. Change detection runs top-down through the component tree. OnPush skips a subtree unless an input reference changes, an event fires inside it, markForCheck() is called (e.g. by async pipe) or a read signal changes. OnPush is the default since v22.
  11. zone.js patches async browser APIs to know *when* to run change detection. Zoneless (stable v20.2, default for new apps in v21) relies on signals, markForCheck, async pipe and template events instead.
  12. Signals: signal() writable, computed() derived, lazy and memoised, effect() side effects, linkedSignal() writable state that resets when its source changes, resource()/httpResource() for async data.
  13. RxJS operators: switchMap cancels the previous inner (search), mergeMap runs all in parallel, concatMap queues in order (saves), exhaustMap ignores new ones while busy (login button).
  14. Avoid leaks: prefer the async pipe or toSignal(), else takeUntilDestroyed(). BehaviorSubject holds a current value, ReplaySubject(n) replays n values, Subject has no memory.
  15. HttpClient returns cold observables: no request until you subscribe. Interceptors are functions (req, next) => next(req.clone(...)) registered with provideHttpClient(withInterceptors([...])).
  16. Routing: lazy load with loadComponent / loadChildren, protect with functional guards (CanActivateFn, CanMatchFn, CanDeactivateFn), prefetch data with ResolveFn. Forms: template-driven (ngModel), reactive (typed FormGroup), and signal forms (form(), stable v22).

Foundations & templates

Architecture, standalone components & NgModules

An Angular app is a tree of components, wired together by dependency injection, compiled ahead of time into plain JavaScript.

  • Building blocks: components (template + class + styles), directives, pipes, services (logic and state, provided through DI) and the router.
  • A standalone component declares its own dependencies in imports. Since v19, standalone: true is the default, so you no longer write it.
  • NgModules group declarations and providers. They still work and many existing apps use them, but new code should be standalone. Mixing is fine: standalone components can import NgModules and vice versa.
  • The app starts with bootstrapApplication(AppComponent, appConfig). Global setup is done with provider functions like provideRouter, provideHttpClient and provideZonelessChangeDetection.
  • The Angular CLI (ng new, ng generate, ng serve, ng build) uses an esbuild/Vite-based builder. Templates are compiled AOT (ahead of time) by the Ivy compiler into instructions.

Interview questions

  • What is a standalone component and why did Angular move to it?
  • What happens when an Angular app starts?
  • What is the difference between AOT and JIT compilation?

Templates & data binding

Templates are HTML plus bindings: data flows into the DOM with {{ }} and [ ], and events flow out with ( ).

  • Interpolation {{ expr }} renders text. Property binding [src]="url" sets a DOM property, not an HTML attribute.
  • Event binding (click)="save($event)" calls a method. Key events can be filtered: (keyup.enter).
  • Two-way binding [(value)] is sugar for [value] + (valueChange). [(ngModel)] does the same for form controls (needs FormsModule).
  • Use [attr.aria-label] for attributes with no DOM property, [class.active]="isActive" and [style.width.px]="w" for single classes and styles.
  • Template reference variables #box give you the element or component in the template. @let total = price() * qty(); (v18.1+) declares a local, read-only template variable.

Interview questions

  • What is the difference between property binding and attribute binding?
  • How does [(ngModel)] work?
  • Why is calling a method in a template considered a performance smell?

Built-in control flow: @if, @for, @switch, @defer

Block syntax replaces *ngIf/*ngFor/ngSwitch; it needs no imports, type-narrows better and is faster.

  • Introduced in v17 and stable since v18. NgIf, NgFor and NgSwitch are deprecated since v20. Migrate with ng generate @angular/core:control-flow.
  • @if (user(); as u) { ... } @else if (...) { ... } @else { ... } — as stores the result in a local variable.
  • @for (item of items(); track item.id) { ... } @empty { ... } — track is required. Implicit variables: $index, $first, $last, $even, $odd, $count.
  • @switch (status) { @case ('ok') { ... } @default { ... } } — no fall-through between cases.
  • @defer lazy-loads its content (and its standalone components, directives and pipes) as a separate chunk. Triggers: on idle (default), viewport, interaction, hover, immediate, timer(2s), or when condition. Optional blocks: @placeholder, @loading, @error, plus prefetch on ....

Interview questions

  • What are the advantages of @if/@for over *ngIf/*ngFor?
  • Why is track mandatory in @for?
  • How does @defer differ from lazy-loaded routes?

Directives: attribute, structural & host

Directives add behaviour to elements. Attribute directives change an existing element; structural directives create or remove DOM from a template.

  • Three kinds: components (directives with a template), attribute directives (ngClass, ngStyle, custom appHighlight), structural directives (*ngIf, *ngFor, custom *appIfRole).
  • Use the host property in @Directive/@Component metadata for host bindings and listeners. It is preferred over @HostBinding / @HostListener decorators.
  • The * prefix is sugar: <div *appIf="x"> becomes <ng-template [appIf]="x"><div>…</div></ng-template>. A structural directive gets TemplateRef and ViewContainerRef and calls createEmbeddedView / clear.
  • hostDirectives (v15+) composes directives onto a component without the user adding them in the template.
  • Only one structural directive per element. Wrap with <ng-container> (renders no DOM) when you need two.

Interview questions

  • What is the difference between a component and a directive?
  • What is the difference between structural and attribute directives?
  • What is the difference between ng-template, ng-container and ng-content?

Pipes: pure vs impure

Pipes transform values in templates. Pure pipes recompute only when the input changes; impure pipes recompute on every change detection.

  • Built-ins: date, currency, number (decimal), percent, uppercase, lowercase, titlecase, slice, json, keyvalue, async. Standalone components must import each pipe they use (or CommonModule).
  • A pure pipe (default) is called only when a primitive input changes value or an object input changes reference. Angular can cache the result, so pure pipes are cheap.
  • An impure pipe (pure: false) runs on every change detection pass, so it notices mutations but can be expensive. async, json and keyvalue are impure.
  • Pipes can take parameters ({{ d | date:'short' }}) and be chained ({{ name | slice:0:10 | uppercase }}).
  • With signals, a computed() often replaces a custom pure pipe that only one component uses.

Interview questions

  • What is the difference between a pure and an impure pipe?
  • Why is the async pipe impure?
  • My pure pipe does not update after I add an item to the array. Why?

Components in depth

Component communication: inputs, outputs, queries & services

Data goes down through inputs, events go up through outputs, and shared state lives in services.

  • Signal inputs: name = input<string>(), id = input.required<number>(), with transform and alias options. Read them as signals: this.id(). They are read-only inside the child.
  • Outputs: saved = output<Item>(), then this.saved.emit(item). The parent listens with (saved)="onSaved($event)".
  • model() creates a writable input plus a nameChange output, so the parent can use [(name)].
  • Queries: viewChild(Child) / viewChildren find things in the component's own template; contentChild / contentChildren find projected content. The signal versions return signals.
  • Content projection with <ng-content select="[header]" /> lets the parent pass markup into slots.
  • Siblings or distant components share a service holding signals or a BehaviorSubject.

Interview questions

  • How do components communicate in Angular?
  • What are signal inputs and why use them over @Input()?
  • What is the difference between viewChild and contentChild?
  • What is content projection?

Lifecycle hooks

Angular calls hooks at fixed points: when inputs change, after init, after content and view are ready, on every check, and before destroy.

  • constructor: for DI and field setup only; inputs are not set yet.
  • ngOnChanges(changes): before ngOnInit and whenever an input reference changes. Gives a SimpleChanges map with previousValue, currentValue, firstChange.
  • ngOnInit: once, after the first ngOnChanges. Classic place to start loading data based on inputs.
  • ngDoCheck, ngAfterContentChecked, ngAfterViewChecked: run on every check, so keep them tiny.
  • ngAfterViewInit: the component's view and child views exist; decorator @ViewChild queries are set.
  • ngOnDestroy or inject(DestroyRef).onDestroy(fn): clean up timers and subscriptions. afterNextRender / afterEveryRender run code after the DOM is rendered, only in the browser.

Interview questions

  • Difference between the constructor and ngOnInit?
  • What is ExpressionChangedAfterItHasBeenCheckedError?
  • How do you clean up in modern Angular?

Dependency injection & change detection

Dependency injection, providers & hierarchical injectors

Classes ask for dependencies with inject(); injectors create and cache them, searching up a tree of element and environment injectors.

  • A provider tells an injector how to create a value for a token: useClass, useValue, useFactory (with deps or inject() inside), useExisting (alias). multi: true collects many values under one token.
  • @Injectable({ providedIn: 'root' }) registers a tree-shakable singleton in the root injector. If nobody injects it, it is dropped from the bundle.
  • Two hierarchies: element injectors (from providers / viewProviders on components and directives) and environment injectors (root, platform, and those created for lazy routes with providers).
  • Resolution: start at the requesting element, walk up the element tree, then the environment tree, then throw NullInjectorError. Modify with inject(T, { optional, self, skipSelf, host }).
  • inject() only works in an injection context: constructor, field initialisers, provider factories, guards/resolvers/interceptors, or inside runInInjectionContext.
  • Use an InjectionToken<T> for non-class values (config objects, strings, functions).

Interview questions

  • What is dependency injection and why does Angular use it?
  • Explain hierarchical injectors.
  • Difference between useClass, useValue, useFactory and useExisting?
  • inject() vs constructor injection?
  • What does multi: true do?

Change detection: Default/Eager vs OnPush, zone.js & zoneless

Change detection walks the component tree and updates bindings that changed; OnPush and signals let Angular skip most of the tree.

  • Angular checks components top-down from the root, comparing each binding with its previous value and updating the DOM where it changed. Data flows one way during a check.
  • Eager (called Default before v22) checks the component every time change detection runs. OnPush checks it only when an input changes (Object.is), an event is handled inside it, it is marked with markForCheck() (the async pipe does this), or a signal read in its template changes.
  • zone.js monkey-patches async APIs (events, timers, promises, XHR). When a task finishes inside the Angular zone, ApplicationRef.tick() runs change detection for the whole app. NgZone.runOutsideAngular avoids that for noisy work.
  • Zoneless (provideZonelessChangeDetection(), stable v20.2; default for new apps in v21) removes zone.js. Angular schedules change detection only on real notifications: signal updates, markForCheck, async pipe, template/host listeners, setInput.
  • Version notes: OnPush became the default strategy in v22, and ChangeDetectionStrategy.Default is deprecated in favour of Eager.
  • With signals Angular can refresh only the components whose templates read the changed signal, not their ancestors.

Interview questions

  • How does change detection work in Angular?
  • What does OnPush do and when does an OnPush component get checked?
  • What is zone.js and why is Angular moving away from it?
  • markForCheck() vs detectChanges() vs detach()?
  • What is NgZone.runOutsideAngular used for?

Reactivity: signals & RxJS

Signals: signal, computed, effect, linkedSignal

Signals are reactive values that track who reads them, so Angular knows exactly what to update when they change.

  • signal(v) is writable: read with count(), write with set(v) or update(fn). Use asReadonly() to expose it read-only from a service.
  • computed(() => ...) is derived, lazy and memoised: it runs on first read, caches the value and recomputes only when a signal it read changes. Dependencies are tracked dynamically.
  • effect(() => ...) runs side effects (logging, localStorage, manual DOM, sync with non-signal APIs) when its signals change. It runs asynchronously during change detection, needs an injection context, and is cleaned up with its owner. Do not use it to copy one signal into another.
  • linkedSignal(() => source()) (stable v20) is writable state that resets when its source changes, e.g. a selected item that falls back to the first option when the list changes.
  • untracked(() => ...) reads signals without creating a dependency. Signals use Object.is equality by default; pass { equal } to customise.
  • Interop: toSignal(obs$) subscribes and exposes the latest value; toObservable(sig) turns a signal into an Observable.

Interview questions

  • What are signals and why did Angular add them?
  • Difference between computed() and effect()?
  • What is linkedSignal and when would you use it?
  • Signals or RxJS — which should I use?

Async signals: resource, httpResource & RxJS interop

resource() turns async loading into signals (value, status, error); toSignal/toObservable connect signals with RxJS.

  • resource({ params, loader }): params is a reactive computation; whenever it changes, loader({ params, abortSignal, previous }) runs. If params returns undefined, the loader does not run and the status is 'idle'.
  • A resource exposes signals: value(), status(), error(), isLoading(), and hasValue() (a type guard). It is writable locally (set/update) and has reload().
  • When params change during a load, the previous load is aborted, giving switchMap-like behaviour for free.
  • httpResource(() => '/api/users/' + id()) wraps HttpClient (so interceptors run). rxResource({ params, stream }) uses an Observable-returning stream.
  • resource, httpResource, rxResource were experimental in v19–v21 and are stable since v22. Use them for reads; do mutations (POST/PUT) with HttpClient directly.
  • toSignal(obs$, { initialValue }) subscribes immediately and unsubscribes on destroy. toObservable(sig) emits from an effect, so values arrive asynchronously.

Interview questions

  • What problem does resource() solve?
  • httpResource vs HttpClient.get + toSignal?
  • How does toSignal handle the period before the Observable emits?

RxJS essentials: Observables, Subjects & unsubscribing

Observables are lazy streams of many values; Subjects multicast; leaks are avoided with the async pipe, toSignal or takeUntilDestroyed.

  • An Observable is lazy: nothing runs until subscribe. It can emit 0..n values, then complete or error, and can be cancelled by unsubscribing.
  • A Promise is eager (the executor runs immediately), resolves once, is always async and cannot be cancelled.
  • Cold Observables start a new producer per subscriber (e.g. HttpClient calls: two subscribes = two requests). Hot ones share one producer (DOM events, Subjects). share() / shareReplay({ bufferSize: 1, refCount: true }) make cold sources shared.
  • Common operators: map, filter, tap, debounceTime, distinctUntilChanged, catchError, retry, combineLatest, forkJoin, startWith, takeUntil.
  • Unsubscribe strategies: async pipe (best in templates), toSignal, takeUntilDestroyed(), take(1) / first() for one value, or takeUntil(destroy$) in old code.
  • Finite sources (HttpClient, of, from) complete on their own; infinite ones (interval, valueChanges, router events, store selects) must be unsubscribed.

Interview questions

  • Observable vs Promise?
  • Subject vs BehaviorSubject vs ReplaySubject?
  • How do you avoid memory leaks with subscriptions?
  • What is the difference between hot and cold Observables?
  • combineLatest vs forkJoin vs zip?

switchMap vs mergeMap vs concatMap vs exhaustMap

All four map each outer value to an inner Observable; they differ in what they do when a new value arrives while an inner one is still running.

  • switchMap: unsubscribe from (cancel) the previous inner and switch to the new one. Only the latest matters.
  • mergeMap (alias flatMap): run all inners concurrently; results arrive in completion order. Optional concurrency limit argument.
  • concatMap: queue inners and run them one after another in order. Nothing is lost or reordered.
  • exhaustMap: ignore new outer values while an inner is running. The first one wins.
  • These replace nested subscribe calls and give you cancellation and ordering control.

Interview questions

  • Explain switchMap, mergeMap, concatMap and exhaustMap.
  • Which operator for a search box, and why?
  • Which operator for a 'Save' button that users double-click?

HTTP, routing & forms

HttpClient & interceptors

HttpClient returns typed, cold Observables; functional interceptors form a chain that can modify requests and responses.

  • Set up with provideHttpClient(withInterceptors([...]), withFetch()). withFetch() uses the Fetch API and is recommended for SSR.
  • http.get<User[]>(url, { params, headers }) returns a cold Observable: no request until subscribe; each subscribe sends a new request. It emits once and completes.
  • Interceptors are functions HttpInterceptorFn = (req, next) => Observable<HttpEvent>. Requests are immutable, so modify with req.clone({ setHeaders: {...} }).
  • Interceptors run in the order listed for requests, and in reverse for responses. They can use inject().
  • Uses: auth headers, base URL, global error handling, retry, loading spinners, caching, logging. Class interceptors still work via withInterceptorsFromDi().
  • Pass per-request metadata with HttpContext and HttpContextToken (e.g. skip the auth header for public calls).

Interview questions

  • What is an HTTP interceptor and what would you use it for?
  • Why do you need req.clone() in an interceptor?
  • How would you implement token refresh on 401?

Routing: lazy loading, guards & resolvers

Routes map URLs to components; lazy loading splits bundles per route, guards decide if navigation may happen, and resolvers load data first.

  • provideRouter(routes, withComponentInputBinding(), withPreloading(PreloadAllModules)). <router-outlet /> shows the matched component, routerLink navigates.
  • Lazy loading: loadComponent: () => import('./admin').then(m => m.Admin) or loadChildren: () => import('./admin.routes') (a default export works too).
  • Functional guards: CanActivateFn, CanActivateChildFn, CanDeactivateFn (unsaved changes), CanMatchFn (can this route even match? also stops the lazy chunk download). Return boolean, UrlTree, RedirectCommand, or an Observable/Promise of those.
  • Resolvers (ResolveFn<T>) fetch data before activation; the result appears in route.data or as an input with component input binding.
  • withComponentInputBinding() binds path params, query params and resolved data straight to component inputs.
  • Route-level providers create an environment injector for that route subtree.

Interview questions

  • How does lazy loading work in Angular?
  • Difference between canActivate and canMatch?
  • What is a resolver and what is the downside?
  • How do you read route parameters in a component?

Forms: template-driven, reactive (typed) & signal forms

Template-driven forms keep the model in the template with ngModel; reactive forms build an explicit, typed model in code; signal forms build on a signal model.

  • Template-driven (FormsModule): [(ngModel)] + name, validation through attributes (required, minlength). Simple, but the model is implicit and async.
  • Reactive (ReactiveFormsModule): FormControl, FormGroup, FormArray, built in TypeScript, synchronous access, valueChanges Observable, easier to unit test.
  • Typed forms (v14+): new FormControl('') is FormControl<string | null> because reset() sets null. Use nonNullable: true or inject(NonNullableFormBuilder) to get string.
  • Validators: Validators.required, email, minLength, pattern; custom sync ValidatorFn returns ValidationErrors | null; async validators return an Observable/Promise and run after sync ones pass. Cross-field validators go on the group.
  • Control state: valid/invalid, pristine/dirty, touched/untouched, pending. value excludes disabled controls; getRawValue() includes them.
  • Signal forms (@angular/forms/signals, experimental v21, stable v22): form(modelSignal, schema) returns a field tree; bind with [formField].

Interview questions

  • Template-driven vs reactive forms?
  • How do you write a custom validator, and a cross-field one?
  • Why is a typed FormControl('') of type string | null?
  • What are signal forms?

Performance, SSR, testing & comparison

Performance optimisation

Do less work per change detection, render less DOM, and ship less JavaScript up front.

  • Change detection: OnPush everywhere, signals for state, zoneless, no heavy method calls in templates, pure pipes or computed() for derived values.
  • Lists: a good track key in @for (or trackBy with *ngFor), virtual scrolling (cdk-virtual-scroll-viewport) for long lists, pagination.
  • Bundles: lazy routes, @defer blocks, tree-shakable providedIn: 'root' services, avoid importing whole libraries, keep an eye on angular.json budgets and use source-map-explorer.
  • Loading: SSR + hydration (incremental hydration with @defer (hydrate on ...)), NgOptimizedImage (ngSrc, priority for the LCP image, lazy by default), preloading strategies.
  • Runtime: debounce noisy streams, run noisy listeners outside Angular (zone.js apps), unsubscribe from long-lived streams, shareReplay repeated HTTP calls.
  • Measure first: Angular DevTools profiler (change detection timing per component), Chrome Performance panel, Lighthouse/Core Web Vitals.

Interview questions

  • How would you improve the performance of a slow Angular app?
  • What is trackBy / track and why does it matter?
  • How do you find which component is causing slow change detection?

SSR, prerendering & hydration

The server renders HTML for fast first paint and SEO; hydration then reuses that DOM in the browser instead of re-rendering it.

  • Add with ng new --ssr or ng add @angular/ssr. Server routes choose a render mode per route: RenderMode.Server (SSR per request), RenderMode.Prerender (SSG at build time) or RenderMode.Client (CSR).
  • Hydration (provideClientHydration()) lets the client attach to the server DOM instead of destroying and re-creating it. This avoids flicker and improves LCP/CLS.
  • withEventReplay() records user clicks made before the app has hydrated and replays them afterwards.
  • Incremental hydration: @defer (hydrate on viewport | interaction | idle | hover | immediate | timer) or hydrate never keeps parts server-rendered but not hydrated until needed. Since v22 it is on by default with provideClientHydration() (before that, withIncrementalHydration()).
  • HttpClient responses made on the server are cached into the page (transfer cache) and reused on the client, so data is not fetched twice.
  • Server code has no window, document or localStorage. Use afterNextRender, isPlatformBrowser(inject(PLATFORM_ID)), or inject DOCUMENT.

Interview questions

  • What is hydration and why does it matter?
  • What is incremental hydration?
  • Name common SSR pitfalls.

Testing Angular apps

Unit-test services as plain classes, test components with TestBed (or component harnesses), mock HTTP with HttpTestingController, and cover flows with E2E tests.

  • New CLI projects (v21+) use Vitest with jsdom for ng test; Karma/Jasmine is still supported and common in existing apps. Jest is used by many teams too.
  • TestBed creates a testing module: TestBed.configureTestingModule({ imports: [MyComponent], providers: [...] }), then TestBed.createComponent.
  • fixture.detectChanges() (or await fixture.whenStable() in zoneless tests) renders; query with fixture.nativeElement or debugElement.query(By.css(...)). fixture.componentRef.setInput('x', v) sets inputs.
  • Mock dependencies with { provide: Api, useValue: fakeApi }. For HTTP use provideHttpClient() + provideHttpClientTesting() and HttpTestingController (expectOne, flush, verify).
  • Async: fakeAsync + tick() (needs zone.js), or real async with await. Prefer testing behaviour through the DOM over private methods.
  • E2E: Playwright or Cypress (Protractor is gone). CDK component harnesses give stable APIs for testing Material components.

Interview questions

  • How do you test a component that depends on a service?
  • How do you test HTTP calls?
  • What changed in Angular testing recently?

Angular vs React

Angular is a full, opinionated framework with DI, routing, forms and HTTP built in; React is a UI library that you combine with ecosystem choices.

  • Scope: Angular ships a router, forms, HttpClient, DI, i18n, animations, testing setup and a CLI. React covers rendering; routing, data fetching and forms come from libraries or meta-frameworks like Next.js.
  • Rendering model: Angular compiles templates to update instructions and checks bindings (with signals, at fine grain). React re-runs component functions and diffs a virtual DOM.
  • State: Angular uses services + signals/RxJS shared through DI. React uses hooks, context and external stores (Redux, Zustand, TanStack Query).
  • Language & templates: Angular is TypeScript-first with HTML templates and decorators. React uses JSX/TSX; TypeScript is optional but common.
  • Choice: Angular fits large teams that want consistency and batteries included. React fits teams that want flexibility and a huge ecosystem.

Interview questions

  • Angular vs React: what are the main differences?
  • How do Angular signals compare to React state and hooks?
  • When would you pick Angular over React for a project?