Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Animation in Angular: animate.enter, animate.leave, CSS Transitions and Moving Off @angular/animations
animate.enter and animate.leave, added in Angular 20.2, put a CSS class on an element as it enters or leaves the DOM and wait for the animation, with no need for @angular/animations. We animate Bookstore cart lines and toasts and cover prefers-reduced-motion, @starting-style, withViewTransitions and migrating old trigger code.
i18n in Angular: $localize, the i18n Attribute, ICU Messages, ng extract-i18n and Per-Locale Builds
Angular's build-time i18n marks text with the i18n attribute and $localize, extracts it to an XLIFF file with ng extract-i18n and builds a separate app per language. We make the Bookstore UI Turkish and English and cover ICU plural/select, LOCALE_ID, /tr and /en routing in ASP.NET Core and catching missing translations at build time.
Writing Your Own Form Control in Angular: FormValueControl, FormCheckboxControl and ControlValueAccessor in Existing Code
In Angular 22 a value = model() is all a component needs to be a form control: we write a quantity stepper and a gift wrap switch with FormValueControl and FormCheckboxControl, use the same control with Reactive Forms and ngModel, and read and migrate old ControlValueAccessor code.
Angular Signal Forms in Practice: form(), Schemas, Built-in and Custom Validators, Async Validation and submit()
In Signal Forms the data lives in a model signal and form() builds a typed FieldTree on top of it. We build the Bookstore checkout form with a schema, built-in and custom validators, applyWhen/applyEach, a debounced validateHttp coupon check and submit() that maps server errors to fields.
Angular 22: OnPush by Default, Stable Signal Forms and a File-by-File Comparison with Angular 12
In Angular 22 OnPush is the default, Signal Forms and the resource APIs are stable, and HttpClient uses Fetch. We also cover the yearly major cadence and a file-by-file diff with an Angular 12 project.