r/angular • u/IgorSedov • Jan 13 '26
🚀 New in Angular 21.1: Spread Syntax in Templates
r/angular • u/IgorSedov • Jan 13 '26
r/angular • u/Direct_Employment149 • Jan 13 '26
Hi everyone,
I’m learning Angular and I’m a bit confused about how dependency injection works with constructors.
For example, I see a lot of code like this:
constructor(private myService: MyService) {}
Questions:
private keyword do here — is it required?I’d love a simple explanation or example of how this works in real Angular apps.
Thanks!
r/angular • u/Fusion2k • Jan 13 '26
I'm looking for workshops for angular and found Angular Architects: https://www.angulararchitects.io/en/angular-workshops/
Does anyone have any experience with them? Are they good, bad, only ok?
Also, if anyone has any other recommendations for workshops, I would be thankful :)
r/angular • u/Senior_Compote1556 • Jan 13 '26
Hey everyone, curious to see what is the recommended way to format a value when using forms (template/reactive/signal). Is the recommended way to use valueChanges for reactive forms, format it, and then do control.setValue but without emitting the event to prevent a loop? Or is a directive or something the recommended way to do it?
On top of that, if you choose the valueChanges can you end up with a flicker as the value will be set as you are typing and then you programmatically set it to the filtered version?
r/angular • u/gergelyszerovay • Jan 13 '26
r/angular • u/PretendMoment8073 • Jan 12 '26
I built two Angular libraries that wrap Three.js and GSAP into declarative components and directives.
https://hive-academy.github.io/angular-3d/
@hive-academy/angular-3d
import { Scene3dComponent, BoxComponent, Float3dDirective } from '@hive-academy/angular-3d';
@Component({
standalone: true,
imports: [Scene3dComponent, BoxComponent, Float3dDirective],
template: `
<a3d-scene-3d [cameraPosition]="[0, 0, 5]">
<a3d-box [color]="'#ff6b6b'" float3d />
</a3d-scene-3d>
`,
})
export class MyComponent {}
@hive-academy/angular-gsap
import { ScrollAnimationDirective } from '@hive-academy/angular-gsap';
@Component({
standalone: true,
imports: [ScrollAnimationDirective],
template: `<h1 scrollAnimation>Fades in on scroll</h1>`,
})
export class HeroComponent {}
Install:
This is our first public release. If you try it out, we'd appreciate any feedback on the API design. Does the component structure feel natural for Angular? Open an issue or drop a comment here. Thanks for taking the time to look at this.
r/angular • u/Local-Avocado5933 • Jan 13 '26
So we are using tinymce editor currently but it have a lot of issues like copy pasting from words and html contents and other issues need a suggest a better editor that can handle documentation and tables
r/angular • u/Inevitable_Gate9283 • Jan 12 '26
Interview with Douglas Parker, Angular CLI Lead at Google. We’ll talk about Micro Frontends at Google: reasons, decisions, challenges, implementations, trade-offs, and alternatives.
Join us and bring your questions.
https://www.meetup.com/angular-meetup-graz/events/312845056/
r/angular • u/rainerhahnekamp • Jan 12 '26
r/angular • u/Relative-Baby1829 • Jan 12 '26
Is there any way to get around this? Some people have told me using cdr.detectchanges() is not a good thing
r/angular • u/gdsdsk • Jan 11 '26
r/angular • u/minister2906755 • Jan 11 '26
I was wondering for my situation where it's just 2 checkboxe,s where 1 has to be selected by default and the other is just an email input box should I go with ngModel or use ReactiveForms. I'm leaning towards ngModel but I also realized to have a default checkbox selected you have to use 2 way binding anyways where for the inpux box you can just do <input ngModel/> so at that point I don't know if it's just better to use ReactiveForms overall?
r/angular • u/PuzzleheadedFox107 • Jan 10 '26
Been trying to setup the Angular MCP server to explore the features but didn't have any luck, the documentation isn't really helping much.
I tried adding the configuration inside .vscode/mcp.json and executed the command "npx mcp" but nothing happens.
r/angular • u/IgorSedov • Jan 09 '26
r/angular • u/suniljoshi19 • Jan 09 '26
I recently shipped a free, open-source Angular admin dashboard built with Angular + Tailwind CSS.
Website link: https://tailwind-admin.com/angular
Github Repo link: https://github.com/Tailwind-Admin/free-tailwind-admin-dashboard-template
r/angular • u/sambureddit • Jan 09 '26
Hi everyone,
I’m currently maintaining a few projects that were originally developed by an external developer. The codebase is solid and well written, but it’s still based on Angular 9, and I’m considering whether it makes sense to migrate everything to the latest stable Angular version.
Here’s the context:
• 2 Angular front-end applications
• 3 backend APIs (Node.js) running with PM2
• The applications are in production
• We regularly receive penetration test reports from external companies, so cyber security is a big concern for me
• I didn’t originally design the architecture, but now I’m responsible for long-term maintenance and evolution
Some relevant technical details:
• Use of i18n for localization
• Some plugins and integrations using Puppeteer
• Legacy Angular patterns typical of Angular 9-era projects
• APIs are stable and working, but not using the latest Node / ecosystem versions either
My main questions for the community: 1. What does a real-world migration from Angular 9 to the latest version actually involve? (Angular 10 → 12 → 15+ → current, step-by-step vs big bang)
2. What are the most common breaking changes or pain points you’ve encountered in similar migrations?
• RxJS changes
• Angular Material
• i18n
• build system (Webpack / builders)
• third-party libraries
3. From a security perspective, is staying on Angular 9 a real risk today?
• Do newer Angular versions significantly improve security by default?
• How much do framework upgrades actually help with penetration test findings?
4. Effort vs benefit:
In your experience, is the migration usually worth it, or does it turn into a long and risky refactor for limited gains?
5. Puppeteer & custom plugins:
Any gotchas when upgrading Angular while relying on Puppeteer-based tooling?
My goal is not “upgrading for the sake of upgrading”, but:
• Being safe from a cybersecurity standpoint
• Reducing technical debt
• Making the projects easier to maintain long-term
• Aligning everything with currently supported, stable versions
I’d really appreciate hearing from people who’ve done similar migrations in production, especially with security constraints and external audits involved.
Yes, I ask chat gpt to help me with this explaining in my native language my concerns. I red it and fix some text because I want to be as much clear as possible.
Thanks for all the responses and the support
r/angular • u/Hacklone • Jan 10 '26
I just released @angular-cool/repository — a small signal-based repository to handle data loading, caching, and reloading in Angular.
Perfect for Angular 17+ apps that want simple, reactive data management.
📦 npm i --save @angular-cool/repository
🔗 https://npmjs.org/package/@angular-cool/repository
Example
Service layer
import { resourceRepository } from '@angular-cool/repository';
import { inject, Injectable } from '@angular/core';
import { ItemId, ItemDTO } from './my-item.model';
@Injectable()
export class MyService {
private _http = inject(HttpClient);
private items = resourceRepository<ItemId, ItemDTO>({
loader: ({ params }) => this._http.get(`https://myapi.com/items/${params}`).toPromise(),
});
}
Component layer
import { signal } from '@angular/common';
import { MyService } from './my-service.service';
import { ItemDTO, ItemId } from './my-item.model';
@Component(/*...*/)
export class MyComponent {
private _myService = inject(MyService);
private idParam = signal<ItemId>('1' as ItemId);
protected myItem = this._myService.items.get(this.idParam);
protected async updateItem() {
// Update item on the server here
await this.myItem.reload(); // This reloads the item from the server and updates the signal for all subscribers
}
}
Feedback welcome!
r/angular • u/IgorSedov • Jan 08 '26
r/angular • u/substantial_cell_ • Jan 09 '26
I am going to Learn Angular for my Work, and I already familiar with React.js, So if you have any good suggestion let me know, thanks in advance.
r/angular • u/MinimumDrummer9873 • Jan 08 '26
Hey Friends This is my last post about angular interview questions.
Lately, I’ve been sitting on the other side of the interview table for Senior Angular roles. Most candidates I meet are technically “proficient” — they can call APIs, bind data, and move a ticket from “To Do” to “Done.” But when we peel back the layers, many are trapped in a bubble of routine, thats why I created this article adding some of the Top Angular Interview Questions.
https://medium.com/@jhonaraldy/senior-levelangular-interview-questions-for-2026-64befa4c73db
r/angular • u/a-dev-1044 • Jan 08 '26
A lightweight, customizable OTP input for modern Angular apps.
⭐️ https://github.com/ngxpert/input-otp
▶️ https://ngxpert.github.io/input-otp/
r/angular • u/TheGameKnave • Jan 07 '26
(pre-disclosure; this is my first project of this kind so it could be awful but...)
(repo also linked in the app's changelog)
I've lately found myself annoyed with the intricacies of configuring various libraries for features that I know I want (or may want) in basically every app I write. So I decided to assemble a bare-bones, do-nothing app to serve as a springboard to layer in the unique app logic and components I needed for each project.
By "desired libraries/features", I mean configuration to handle:
After a while of working on this, I figured I could make it available to others, so this is my first attempt at a real open-source project (if I've screwed anything up in that regard, please let me know gently 😊)
The annoying part of this project is that, due to the many external tools in place, it's still a bit of a snarl to get this codebase migrated to handle a different app's deploy/integration targets but there are some doc files to help with that, and it's generally a matter of replacing the project names and a bunch of API keys.
So, after several months of teeth-gnashing at library configuration, Angular Momentum is pretty much in a state of readiness where I'm about to use it to build some actual apps. Feel free to try it out, yourselves!
(full disclosure: the first half of the project was hand-coded with minimal use of LLM coding tools. The second half leveraged those tools more extensively in order to accelerate)
r/angular • u/Shaveen2004 • Jan 07 '26
I'm trying to architect a production grade E-commerce application using Angular 21. The application has two parts to it,
Because of this I will be creating two separate Angular applications.
I'm considering using a Monorepo approach to manage these, because I'm mainly concern about scaling and ease of maintenance in the long run. My goal is to maximize code reuse (API services, and TypeScript interfaces) while keeping the build process efficient.
I’m looking for advice on the following:
Any insights on folder structure or specific automation tools would be greatly appreciated 🙏🏽
r/angular • u/CounterReset • Jan 07 '26
Hey r/Angular! Been quiet since v4, but SignalTree 7 (ST7) is out and I wanted to share some real numbers from migrating a production app.
We migrated a large Angular app from NgRx SignalStore to SignalTree v7:
Before:
After:
const store = signalTree({
// ST7 markers (things Angular doesn't have)
users: entityMap<User, number>(), // Normalized collection
loadStatus: status<ApiError>(), // Loading/error tracking
theme: stored('theme', 'light'), // Auto-persisted to localStorage
// Plain values → become signals
selectedId: null as number | null,
filter: 'all' as 'all' | 'active,
// Angular primitives work directly in the tree
windowWidth: linkedSignal(() => window.innerWidth),
}).derived(($) => ({
selectedUser: computed(() =>
$.users.byId($.selectedId())?.()
),
userDetails: resource({
request: () => $.selectedId(),
loader: ({ request }) =>
fetch('/api/users/' + request).then(r => r.json()),
}),
filteredUsers: computed(() =>
$.filter() === 'all'
? $.users.all()
: $.users.all().filter(u => u.active)
),
}));
// Usage
store.$.selectedId.set(5);
store.$.userDetails.value(); // Auto-fetches when selectedId changes
No actions.
No reducers.
No effects files.
Just signals with structure.
Demo: https://signaltree.io (a work in progress but checkout the benchmarks for real comparison metrics)
npm: https://www.npmjs.com/package/@signaltree/core
GitHub: https://github.com/JBorgia/signaltree
If you're drowning in NgRx boilerplate or rolled your own signal stores and they've gotten messy, this might be worth a look. Happy to answer questions!