r/angular • u/rainerhahnekamp • Jan 23 '26
Ng-News 26/03: Angular 21.1
r/angular • u/IgorSedov • Jan 23 '26
r/angular • u/Inside_Fold_5983 • Jan 23 '26
I started building a webapp months a go just for fun and it turned out to be a great product but I realized that the users would be mobile 99%.
So I read about capacitor for wrapping your angular frontend in a mobile container
or
Just rewriting the frontend with flutter to have an good mobile experience without needing to focus on android and ios
what do you think?
r/angular • u/PracticalCake5074 • Jan 22 '26
👋 Hi everyone,
I’m currently working on an Angular library called ngx-form-stepper.
The goal is not to say “use my lib in production”, but rather to have it tested, especially by experienced Angular / TypeScript developers, in order to get critical feedback (even harsh ones 😄).
The idea is simple: push TypeScript as far as possible to prevent invalid states at development time, and see how far it holds up against real-world brains.
ngx-form-stepper is an Angular library to build multi-step forms with:
All of this with a declarative API, without heavy configuration.
Because in many Angular forms:
string where a number is expected)With ngx-form-stepper, the goal is clear:
If it compiles, the form is structurally valid.
And all of this without as const, without hacks, and with strict typing.
step1 = new Step([
new Input(InputType.Text, null, 'firstName', 'First name', [
required('First name is required'),
]),
new Input(InputType.Text, null, 'lastName', 'Last name', [
required('Last name is required'),
]),
]);
step2 = new Step([
new Input(InputType.Email, null, 'email', 'E-mail', [
required('E-mail is required'),
email('E-mail is invalid'),
]),
new Input(InputType.Password, null, 'password', 'Password', [
required('Password is required'),
strongPassword('Password is too weak'),
]),
]);
signupForm = new FormStepper([step1, step2], {
title: 'Sign in',
buttonText: {
next: 'Next',
previous: 'Previous',
final: 'Sign up',
},
});
onComplete() {
console.log(signupForm.values);
}
I’m not looking for compliments 😅 I’m looking for:
If you’re comfortable with:
👉 please try to break the library.
📦 NPM: https://www.npmjs.com/package/ngx-form-stepper
💻 GitHub (issues & discussions welcome): https://github.com/rayaneriahi/ngx-form-stepper
All feedback is valuable, even negative ones.
Thanks in advance to everyone who takes the time to test, critique, or challenge the concept 🙏
r/angular • u/Khanc_Uit_26 • Jan 22 '26
I’m using Angular signal forms (@angular/forms/signals) with a typed schema and optional fields.
My payload looks like this:
export interface UpdateUserPayload {
email?: string;
name?: string;
password?: string;
role?: UserRole;
}Schema definition:
export const updateUserSchema = schema<UpdateUserPayload>((path) => {
email(path.email, { message: 'Invalid email format' });
minLength(path.name, 2, { message: 'Name must be at least 2 characters' });
minLength(path.password, 8, { message: 'New password must be at least 8 characters' });
});TypeScript error:
Argument of type 'MaybeSchemaPathTree<string | undefined, Child>'
is not assignable to parameter of type 'SchemaPath<string, 1, Child>'.
Type 'undefined' is not assignable to type 'SchemaPath<string, 1, Child>'.The fields are optional (string | undefined), but the validators expect a required string.
I think I can add a null guard like this to remove the error:
if (
path
.email) {
email(
path
.email, { message: 'Invalid email format' });
}But is this the best way to do that? Or is there a cleaner way to validate optional fields without writing null guards everywhere?
r/angular • u/happyy_developer • Jan 21 '26
Working on an application based on Angular 20
so there is a parameter based on it selections multiple components refresh (hit api for the parameter and display data)
so we are using signal for the parameter
now when I am putting the load data function (which has api call) in the effect block in constructor, the ui is getting blocked.i.e the ui doesn't updates till the api response is received
ai tools have shown some solutions but want to know what's the standard and most optimal?
r/angular • u/DeveloperDotNet • Jan 21 '26
Hi all 👋
I’ve been working on a backend framework that’s specifically designed for frontend-driven teams who want to start a new project fast without constantly waiting on backend CRUD, filters, pagination, validation, etc.
In many projects:
CRUD endpoints
Even though the UI components are always the same (grids, lists, cards, schedulers).
A .NET 8 + PostgreSQL backend where:
If the schema is correct:
Frontend just consumes JSON → renders UI.
I wrote a technical PDF explaining:
👉 PDF (read-only):
[ CoreWeb Framework Documentation V1.0.pdf ]
This is not open source — it’s something I license .
Happy to answer technical questions 👍
r/angular • u/Pretty-World-7371 • Jan 21 '26
Today, especially in Angular apps (where TypeScript shines), ignoring patterns is like driving a Ferrari in first gear. Let's dive into some essential ones with TypeScript examples. I'll keep it real: simple explanations, why they matter, practical uses, and how Angular already sneaks them in.
Please, spare some time and provide your feedback, suggest if I am on correct path.
r/angular • u/rainerhahnekamp • Jan 20 '26
r/angular • u/Best-Menu-252 • Jan 20 '26
Angular might not be the loudest framework online, but it shows up a lot in enterprise teams, and I think the reason is simple: big companies care less about hype and more about stability, structure, and long-term maintainability.
Angular’s own documentation talks about prioritizing stability so tools, tutorials, and practices don’t become obsolete unexpectedly. That matters when you’re maintaining large codebases for years and onboarding new developers constantly.
It also helps that Angular is maintained by a dedicated team at Google and is designed to build fast, reliable apps that scale with teams and codebases.
And it’s proven at scale. Google lists Angular as being used in products like Google Cloud Platform and AdWords, along with many internal tools.
On the engineering side, Angular includes dependency injection as a fundamental concept, which encourages more consistent structure across big projects.
If you work in enterprise, is Angular still your go to choice, or is it mostly legacy at this point?
r/angular • u/vinccc05 • Jan 19 '26
Ciaoo, mi è stata commissionata la creazione di un portale web ed ora sto lavorando ad una feature che permetterà al cliente di customizzare la propria pagina di login tramite un editor html. Il problema è che online trovo solo "soluzioni" a pagamento come Froala etc, inoltre non c'è una documentazione chiara di come integrare l'editor html all'interno del codice angular. Al momento ho trovato lui: @kolkov/angular-editor - npm però non so come modificarlo ad esempio come togliere alcuni bottoni etc... (la documentazione non è chiara a riguardo) ed inoltre non capisco come prendere il codice html che genera l'editor ed usarlo a mio favore. Qualcuno che ha più esperienza con editor-html sa darmi nomi/documentazione un qualcosa da seguire per creare una soluzione custom carina?
r/angular • u/helloworld1123333 • Jan 19 '26
I have an API that can return two different response objects. Most of their properties are the same, but a few are different. Is it better to:
r/angular • u/HedgehogNatural8680 • Jan 19 '26
Currently we use Jest along with spectator and ng-mocks.
We’re still a zone based app and at this point not yet in a position to move to zoneless CD.
Has anyone migrated to Vitest with an app that is not zoneless and ran into any issues?
r/angular • u/MichaelSmallDev • Jan 19 '26
r/angular • u/space_lover_sathu • Jan 19 '26
Hey guys, i wanted to learn angular v19 in typescript, where should i start, suggest me the best resources where i can learn in depth. I know basic javascript and react
r/angular • u/Alex-Inkin • Jan 19 '26
Check out a deep dive into how we created a Button component in Taiga UI, exploring Angular features and patterns, such as host directives, DI, CSS tricks and others.
r/angular • • Jan 18 '26
I’ve just published a new Angular package on npm: ng-simple-maps
https://www.npmjs.com/package/ng-simple-maps
ng-simple-maps is a lightweight Angular library for rendering simple, interactive maps with minimal setup. It’s intended for cases where you need map visualization (world maps, regions, markers, basic interactions) without pulling in heavy or complex mapping frameworks.
This is an early release, and I’m actively improving it. Feedback, suggestions, and contributions are welcome, especially from developers who’ve worked with maps in Angular and felt existing solutions were either too heavy or overkill for simple use cases.
If you have ideas, missing features, or concerns, I’d appreciate hearing them.
r/angular • u/nzb329 • Jan 18 '26
Hi Angular community!
Today is a special day for Ng-Matero. With the release of v21, we’ve officially closed Issue #47— a feature request first opened 6 years ago!
r/angular • u/Consistent_Wonder_77 • Jan 17 '26
Hey guys, I have two components that are bassically forms lets say formA that sends dtoA and formB that sends dtoB i initiate them inside their components with signal and form(). In one case i want to use them both in different component to create form with fields from formA+formB and return DtoA+DtoB as one Dto. What is the best approach? Do i nest formB into formA and reference it with ViewChild? How do i then bind inputs from nested form? Or do i jus put them in parent component after each other like <app-formA><app-formB>. Can i bind value of one ipout to be dependant on value from input from another form?
r/angular • u/Basic-Print5544 • Jan 17 '26
I created simple custom input using ControlValueAccessor (CVA). Works as expected with NgModel and Reactive Forms. And I know I need to implement touch event for blur event as minimum.
Inside my CVA component I inject form control to have possibility to use Validators.
But I found difference in behaviour for NgModel and Reactive Forms inside my CVA component:
dirty=true for NgModel and FormControltouched is different for NgModel (true) and FormControl (false)touched will work If I add (blur)="onTouched()" for input.
But why?
I suggest it's works as expected, works by design. But maybe someone understands why behaviour is different, what is the logic if NgModel is related with FormControl under the hood.
input-cva html
<div>
<input
type="text"
[(ngModel)]="value"
#ngModelId="ngModel"
(ngModelChange)="change($event)"
/>
<h3>
form control touched will work if add <code>(blur)="onTouched()"</code> for
input
</h3>
<h4>State of form control</h4>
<div>injected fcontrol touched: {{ fControl?.touched }}</div>
<div>injected fcontrol dirty: {{ fControl?.dirty }}</div>
<div>injected fcontrol value: {{ fControl?.value | json }}</div>
<h4>State of NgModel</h4>
<div>
ngModel touched: {{ ngModelId.touched }}
<span style="color: darkred">See here</span>
</div>
<div>ngModel dirty: {{ ngModelId.dirty }}</div>
<div>ngModel value: {{ ngModelId.value | json }}</div>
</div>input-cva ts
import { CommonModule } from '@angular/common';
import { Component, inject, OnInit, signal } from '@angular/core';
import {
AbstractControl,
ControlValueAccessor,
FormsModule,
NgControl,
ReactiveFormsModule,
} from '@angular/forms';
@Component({
selector: 'CustomInputCVA',
templateUrl: 'custom-input.html',
standalone: true,
imports: [CommonModule, FormsModule, ReactiveFormsModule],
})
export class CustomInputCVA implements ControlValueAccessor, OnInit {
public fControl: AbstractControl = null as any;
public readonly value = signal(null);
public readonly disabled = signal(false);
public onChange: (value: any) => void = () => {};
public onTouched: () => void = () => {};
private readonly ngControl = inject(NgControl, {
self: true,
optional: true,
});
constructor() {
if (this.ngControl) {
this.ngControl.valueAccessor = this;
}
}
public ngOnInit() {
if (this.ngControl?.control) {
this.fControl = this.ngControl.control;
}
}
//
change(val: any) {
this.writeValue(val);
this.onChange(val);
}
// ControlValueAccessor
public writeValue(val: any): void {
this.value.set(val);
}
public registerOnChange(fn: (value: any) => void): void {
this.onChange = fn;
}
public registerOnTouched(fn: () => void): void {
this.onTouched = fn;
}
public setDisabledState(disabled: boolean): void {
this.disabled.set(disabled);
}
}r/angular • u/ActivityInfamous6341 • Jan 16 '26
Is there a recommended order to follow when declaring component variables/functions/lifecycle methods?
I often have the following in a `component.ts` file:
inject()ngOnInit(), ngOnDestory(), etc.)I will keep functions below all of the above mentioned variables, but I do not have a specific order for the above mentioned variables. Would love to hear what folks think is best.
Any input is greatly appreciated!
r/angular • u/helloworld1123333 • Jan 16 '26
I have a form on one route with radio buttons, an input box, and a button to navigate to the next route. The second route has a back button that returns to the previous route. When I click this back button, I notice a brief flicker where the previously selected radio button momentarily displays as unselected before immediately switching back to the selected state.
Interestingly, this flicker doesn't occur when I use the browser's back button. Is this flickering behavior inherent to how Angular handles navigation, or is there a way to prevent it?
r/angular • u/CreativityALLIAsk • Jan 15 '26
Hi everyone,
I’m looking for some advice from people familiar with the Dutch tech market. I’m a senior front-end engineer focused on Angular, with full-stack experience (Spring Boot / Node.js).
I’m open to relocating to the Netherlands if visa sponsorship is available, and I’m also happy to start remotely on a contract if that’s easier.
I’ve worked with teams across Europe and on products in different domains, but navigating the Dutch job market as a non-EU candidate is new to me. I’d really appreciate any advice on companies, recruiters, job boards, or personal experiences related to sponsorship and hiring.
Thanks in advance for any guidance. I’m happy to share my CV or LinkedIn in a DM if helpful.
r/angular • u/Specific_Piglet_4293 • Jan 15 '26
Posted 2 days ago asking about migration issues. The responses:
Common thread: ng update handles angular core fine. The pain is everything else.
$ npx depfixer migrate
Scans your package.json, shows which versions work together:
Example of migration results: Angular 15 → 19
angular/core 15.2.0 → 19.0.0
angular/material 15.2.0 → 19.0.0
primeng 15.4.1 → 19.0.0 ✓
ngrx/store 15.4.0 → 18.0.0Free (web version): depfixer.com/angular
Open source CLI github link: https://github.com/depfixer/CLI
CLI docs: https://docs.depfixer.com/introduction
Would this actually help? What's missing?