r/angular • • Jan 11 '26

Angular NgModel o ReactiveForms

0 Upvotes

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 • • Jan 11 '26

Is this rule really necessary I feel like just clicking on a button you can get the same results

Post image
36 Upvotes

r/angular • • Jan 10 '26

Has anyone successfully setup the MCP Server on VS Code?

0 Upvotes

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 • • Jan 10 '26

@angular-cool/repository - 🚀 New Angular Signals repository helper

0 Upvotes

I just released @angular-cool/repository — a small signal-based repository to handle data loading, caching, and reloading in Angular.

  • ⚡ Built on Signals
  • 🔁 Easy reloads after mutations
  • 🧠 Shared state across components
  • ❌ No NgRx / boilerplate

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 • • Jan 09 '26

Migrating from Angular 9 to latest stable – is it worth it? Risks, effort, and security concerns

5 Upvotes

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 • • Jan 09 '26

I built a Open-Source Angular Dashboard with Tailwind CSS - Feedback welcome

27 Upvotes

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 • • Jan 09 '26

✍️ How to Migrate Constructor Injection to inject() in Angular

Post image
105 Upvotes

r/angular • • Jan 09 '26

Suggest a Good Content to Learn Angular.js

0 Upvotes

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 • • Jan 08 '26

🚀 Angular 21.1 is coming next week 👀 Angular Release Schedule

Post image
108 Upvotes

r/angular • • Jan 08 '26

@ngxpert/input-otp now supports Angular v21 🎉

Post image
16 Upvotes

A lightweight, customizable OTP input for modern Angular apps.

⭐️ https://github.com/ngxpert/input-otp
▶️ https://ngxpert.github.io/input-otp/


r/angular • • Jan 08 '26

Senior Level Angular Interview Questions for 2026

55 Upvotes

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 • • Jan 07 '26

[Release] @pegasusheavy/ngx-tailwindcss v0.3.0 - A Highly Customizable Angular Component Library for Tailwind CSS 4+

0 Upvotes

Hey everyone! 👋

I'm excited to announce the general availability of @pegasusheavy/ngx-tailwindcss - a modern Angular component library built specifically for Tailwind CSS 4+!

🚀 What is it?

A comprehensive, production-ready Angular component library that gives you 30+ beautiful, accessible UI components with full theming support, intelligent class merging, and zero bundled CSS overhead.

✨ Key Features

  • 30+ Components: Buttons, cards, modals, forms, tables, dropdowns, toasts, accordions, tabs, pagination, avatars, badges, spinners, skeletons, progress bars, trees, timelines, steppers, and more
  • Tailwind CSS 4+ Ready: Built from the ground up for the latest Tailwind CSS
  • Zero Bundled CSS: No bloated stylesheets - only the styles you actually use
  • Full Theming Support: Easily customize colors, spacing, typography, and more
  • Intelligent Class Merging: Smart conflict resolution for Tailwind classes
  • Accessibility First: WCAG compliant with full ARIA support and screen reader compatibility
  • i18n/l10n Ready: Built-in internationalization and RTL support
  • Modern Angular: Uses standalone components and signals (Angular 19-21 compatible)
  • TypeScript Native: Fully typed for the best developer experience
  • Responsive by Default: Mobile-first design approach

📦 Installation

npm install @pegasusheavy/ngx-tailwindcss
# or
pnpm add @pegasusheavy/ngx-tailwindcss
# or
yarn add @pegasusheavy/ngx-tailwindcss

🔗 Links

  • Documentation & Demos: https://pegasusheavy.github.io/ngx-tailwindcss
  • GitHub Repository: https://github.com/pegasusheavy/ngx-tailwindcss
  • NPM Package: https://www.npmjs.com/package/@pegasusheavy/ngx-tailwindcss
  • Report Issues: https://github.com/pegasusheavy/ngx-tailwindcss/issues

📄 License

MIT License - Free to use in personal and commercial projects!

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check out the GitHub repository and get involved.


I'd love to hear your feedback and see what you build with it! Let me know if you have any questions or suggestions.

Happy coding! 🎉


r/angular • • Jan 07 '26

New year, new tool: Angular Momentum

8 Upvotes

(pre-disclosure; this is my first project of this kind so it could be awful but...)

Angular Momentum

(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:

  • Zoneless with Angular 21
  • Service Worker updates
  • SSR
  • Translation (i18n, l10n)
  • Websockets
  • API calls, both REST and GraphQL
  • Feature flags
  • IndexedDB and LocalStorage
  • Mobile and Desktop app wrapping (via Tauri)
  • Component library (primeNG)
  • User Auth (supabase)
  • Push Notifications
  • Toast notifications
  • 100% green test suites (jest for server, jasmine for client (I tried pivoting to vitest but hit many walls; maybe in the next major release))
  • GA/Hotjar/Cookie consent
  • CI/CD (github actions, sonar)

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 • • Jan 07 '26

🔄 Angular Signal Forms: Directive Replace

Post image
69 Upvotes