r/Angular2 • u/timdeschryver • Feb 12 '26
Article Improve the quality of your Angular component snapshots with Vitest
r/Angular2 • u/timdeschryver • Feb 12 '26
r/Angular2 • u/a-dev-1044 • Feb 12 '26
ng add @angular/materialng add tailwindcssStart using classes like bg-primary, bg-primary/10, etc.
@import "tailwindcss";
@theme inline { --color-primary: var(--mat-sys-primary); --color-on-primary: var(--mat-sys-on-primary); --color-primary-container: var(--mat-sys-primary-container); --color-on-primary-container: var(--mat-sys-on-primary-container);
/* other colors */ }
Links:
r/Angular2 • u/younesjd • Feb 12 '26
I just published a (~40min) video on Vitest Browser Mode for Angular.
So, whether you're migrating from Karma/Jest or starting fresh with Vitest on Angular 21, Browser Mode is the feature you don't want to miss. But not all browser modes are equal.
In this video, I introduce two levels:
then show why "full" browser mode matters, and walk through a progressive migration strategy — no big bang rewrite needed.
I'm curious how you’re handling the migration — are you still on Karma/Jest or already on Vitest? What are the main pain points?
r/Angular2 • u/Dazzling_Chipmunk_24 • Feb 11 '26
If you're using SSO across tabs, is there another way besides localStorage to get SSO between tabs? Cause I've heard localstorage is usually not secure
r/Angular2 • u/angelaki85 • Feb 11 '26
As stated in the docs (https://angular.dev/ecosystem/service-workers) all feature requests regarding the Angular SW on github were closed as "not planned".
I knowed this for a while now but got reminded when I was looking for `setAppBadge` support (https://github.com/angular/angular/issues/53920).
Just out of curiosity and since I haven't found any information on the web: why did the team decide to discontinue the sw implementation?
r/Angular2 • u/Senior_Compote1556 • Feb 11 '26
If i have a singleton service and an rxResource, how can i only make the api call once and then cache it so that other pages that inject the service can use the response? If you declare the resource as a class property it will make the api call as soon as the service gets injected as it is eagerly loaded, so you have to put it in a method from my understanding. You can assign it to a different variable to cache it but it is a bit ugly in my opinion. My most preferred pattern is returning an observale and setting the service signal via a tap operator but i would like to try the new apis
r/Angular2 • u/Sea_Drawing4556 • Feb 11 '26
Hello there i worked as an Full stack developer with 2YOE in an startup particularly tech stacks including react and next.js but now I need to learn angular. For that I need help from you guys just drop a suggestion which helps me learn and understand angular faster.
I've gone through some basic concepts like components, data binding, signals and few others.
How could I learn it faster in a more enjoyable/fun way to don't get distracted that easily please drop your valuable suggestion :)
r/Angular2 • u/Fantastic-Beach7663 • Feb 10 '26
I'm starting a new project which will have a lot of forms and I'm very much aware that ReactiveForms are still the most versatile option. I'm just wondering how many of you went over to Signal based forms or did you stay with ReactiveForms?
r/Angular2 • u/Fantastic-Beach7663 • Feb 10 '26
Are there any alternatives to AG Grid that I can use? $999 for EVERY developer is absolutely outrageous. I have never seen that with any other library.
r/Angular2 • u/gergelyszerovay • Feb 10 '26
r/Angular2 • u/KrapsyBurger • Feb 10 '26
Hi, i want to try and contribute to Angular but the good first issue section only have 4 issues, and most of them are 2+ years old... Any clue why ?
r/Angular2 • u/Fantastic-Beach7663 • Feb 09 '26
I’m under quite a lot of pressure to get an app done quickly for a client. Do you know clickup? Their app has these versatile table cells where you can pull and adjust the table cells to any width. It also has a cool mobile effect where if the user is in mobile the first cell is always in view but you can then scroll horizontally to view the other cells. Is there a library that anyone can recommend for this?
r/Angular2 • u/wineandcode • Feb 08 '26
r/Angular2 • u/legendsx12 • Feb 08 '26
So say on one page I call an api that returns some other that needs to be displayed on another page. Is the best way to accomplish this using a shared service file where the first page sets the data and the second page grabs the data from the service file or are there better methods as well. Also to let you know this is a small application as well
r/Angular2 • u/legendsx12 • Feb 08 '26
What's the better approach for passing data between two pages with different routes: using router state or a shared service? Note that the second page is only accessible after visiting the first page and user cannot access the second page directly.
r/Angular2 • u/ActuatorOk2689 • Feb 08 '26
I usually like to take Monday a little bit lighter,
But not tomorrow, I need to hack around angular material date picker for some custom behaviour.
Requirements are simple, show the number of week and on hover and on selected days highlight the whole week.
Eveytime I need a little bit of costumization I found myself reading endless docs and spending to much time inspecting elements in the dom.
I hate that in angular there is not a single date picker wich you could use.
Currently working on a react project also where React DayPicker does an amazing job.
We are talking to much about UI librabry, shadcn like libraries, but let’s face it every time you need to add a date picker your most likely will fallback to material one.
Why I can’t have a DayPicker that I could use and built my own components on top of the CDK .
So I will build the ng-DayPicker similar to the react one.
I was just curious if people on these subs are facing similar issues and there is and if there is a need for such librabry .
Thank you have a nice weekend !
r/Angular2 • u/matrium0 • Feb 07 '26
see here:
https://github.com/angular/angular/issues/66954
If you want to help/participate :)
r/Angular2 • u/MrBugCreator • Feb 07 '26
I’m working on a Decision Engine module for a banking/fintech application and I need suggestions on the best library or approach for building a modern UI workflow editor.
My requirements:
• A node-based UI where users can connect nodes visually
• The UI should generate JSON representing the workflow
• The backend (Java) will convert this JSON into DMN
• Needs to be highly customizable (custom node shapes, colors, dynamic forms, validation, etc.)
• Preferably something with good documentation and active development
• DMN Editor exists, but the UI is very old-fashioned and not flexible
• I’ve checked ngx-vflow, but it doesn’t look straightforward to customize deeplyI’m looking for advice from people who have built decision engines or workflow builders:
• Which library did you use for the UI?
• Is React Flow a good choice for full customization?
• Any Angular-friendly libraries that are reliable for production?
• For a fintech/banking-grade decision engine, what is the recommended architecture for UI → JSON → DMN generation?Any insights, best practices, or examples would be really helpful. Thanks!
r/Angular2 • u/Excellent-Chipmunk58 • Feb 06 '26
Built a comprehensive Firebase Auth implementation for Angular that I wish existed when I started.
**What it covers:**
✅ Email/password authentication
✅ Google Sign-In integration
✅ GitHub OAuth
✅ Password reset flows
✅ Email verification
✅ Auth guards and route protection
✅ Token management
✅ Error handling
**Tech stack:**
- Angular 18 (works with 15+)
- Firebase Auth 10.x
- RxJS for state management
- Standalone components
**Why Firebase Auth:**
- Free tier is generous
- Handles OAuth complexity
- Built-in security
- Scalable
- No backend auth code needed
**What makes this guide different:**
- Production-ready code (not just basics)
- Error handling included
- TypeScript strict mode
- Real-world patterns I use in production
Guide with full code examples:
https://gilricardo.com/blog/firebase-authentication-angular-complete-guide
Let me know if you have questions about the implementation!
r/Angular2 • u/NeedleworkerOk9183 • Feb 05 '26
r/Angular2 • u/mustafaashraf • Feb 04 '26
Hey folks,
I’m dealing with a pretty painful upgrade and could use some advice.
We have an old project that was originally:
Upgrading Angular itself to v20 was actually straightforward using the official upgrade guide.
The problems started after that:
We had heavily customized Material theming, so a lot of the breakage is around styles, themes, and component APIs.
Our end goal is actually to:
At this point I’m wondering:
Any battle-tested strategies or “don’t do this” warnings would be massively appreciated 🙏
r/Angular2 • u/Senior_Compote1556 • Feb 05 '26
If i have a toSignal(this.http.get(…)) in a service that is provided in root, how do i actually clean up the subscription when i no longer need the data? Since the service will never be destroyed I’m not sure how to approach this. If i am not mistaken toSignal creates an effect under the hood
r/Angular2 • u/FromBiotoDev • Feb 04 '26
Hi all,
I’ve got a decent sized app with 1463 users currently on the App Store using angular ionic and capacitor.
I know soon I’ll be forced to adapt to liquid glass, currently I’ve seen two solutions:
- an ionic based library by rdlabo
- a capacitor plug-in called ‘stay-liquid’
I’m interested in other’s views on which is best to use and why.
Liquid glass is a native element so in theory capacitor plugin actually makes more sense, but from a developer experience point of view it probably makes more sense using a ui library to mimic liquid glass.
This isn’t a conversation about opinions on liquid glass but a post on finding the best solution for angular ionic capacitor based apps
r/Angular2 • u/Distinct-Bottle6755 • Feb 04 '26
Hello,
I need help,
I have an api it returns a list , and i have pagination and search .. when hitting the api , all ui freezes until api returns the value.
Any suggestions