Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Angular Component Tests: setInput, outputs, whenStable in Zoneless Apps, @defer and Host Components
In Angular 22, old tests that assign through componentInstance and call detectChanges fail, because default OnPush and the zoneless fixture only process changes Angular is notified about; pass values with setInput and read the DOM after whenStable. With Bookstore's BookCard, QuantityInput, CartSummary and CatalogPage components we cover outputs, model(), content projection, @defer and getLastFixture, all with real runs.
Angular 21: Zoneless by Default, Experimental Signal Forms and Vitest
In Angular 21 new projects start without Zone.js, Signal Forms arrive as an experiment and become [formField] in 21.1, and Vitest becomes the default test runner. We compare it all with Angular 12.
What's New in Angular 18: Zoneless Change Detection, @let and Stable Control Flow
Experimental zoneless change detection in Angular 18, control flow and @defer going stable, @let from 18.1, ng-content fallback content, unified form events and redirect functions.