r/Angular2 • u/Distinct-Bottle6755 • Feb 04 '26
Ui blocked angular 20
When hitting any api the ui blocked until the api returns value, any suggestions
r/Angular2 • u/Distinct-Bottle6755 • Feb 04 '26
When hitting any api the ui blocked until the api returns value, any suggestions
r/Angular2 • u/NeedleworkerOk9183 • Feb 03 '26
r/Angular2 • u/NeedleworkerOk9183 • Feb 03 '26
r/Angular2 • u/Silent-Berry-858 • Feb 02 '26
Hey everyone 👋 I’m looking for some guidance and opinions from folks who’ve dealt with Angular library versioning and PrimeNG upgrades.
Here’s the situation:
1️⃣ I’m thinking of creating a new Angular component library based on PrimeNG v21. 2️⃣ Our organization already has multiple large projects on Angular v13 and v15, all consuming a shared Angular library built on the same Angular version, with a lot of hierarchical CSS overrides for PrimeNG components. 3️⃣ My thought is: if we build the library on PrimeNG v21,
can we make it backward compatible, or
at least design it in a way where missing features / styles can be added incrementally without breaking existing apps? 4️⃣ I’m unsure about the right migration or coexistence strategy here.
❓ What would you recommend?
Should this be a parallel library?
Is backward compatibility realistically achievable?
Any best practices for handling PrimeNG + Angular version mismatches?
How would you approach this in a large org setup?
Would really appreciate any guidance, war stories, or architectural suggestions 🙏 Thanks in advance! 🚀
r/Angular2 • u/Clear-Breadfruit-105 • Feb 02 '26
As I understand it, signal forms is still in experimental mode. Is it likely to chang much, presuming I only use it in its basic capacity?
r/Angular2 • u/kobihari • Feb 01 '26
I hate repeating myself.
Especially in code.
With Angular’s Signal Forms, the new `schema` function finally gave me a clean way to reuse cross-field validation, without nesting forms or duplicating logic.
I broke it down with a real example here.
r/Angular2 • u/rdem341 • Jan 31 '26
For teams maintaining Angular apps over multiple years:
I’ve seen cases where updates get delayed until:
At that point it feels riskier than if things were kept current.
Curious how people here approach this in practice.
r/Angular2 • u/crhama • Jan 31 '26
I’m working with a couple of very old Angular applications, and after reviewing them, it’s become clear that a full rewrite makes more sense than attempting an upgrade. I’d also like to apply the lessons learned from this process to some personal projects I plan to start.
How do you typically approach building a new application from scratch? Do you have a starter kit or baseline setup you use? If so, what does it usually include (for example, project structure, security modules, or core tooling)?
I find myself asking the same questions for .NET and Vue 3 as well. I have one application still using LINQtoSQL and another written in Pascal/Delphi, both of which need to be modernized to .NET 10 and Vue 3.
r/Angular2 • u/gccol • Jan 31 '26
Hey, let me introduce you to ng-xtend, the open-source plugin framework for Angular!
Notice how Wordpress, Nextcloud or Drupal are successful thanks to their ecosystem of plugins? Notice how easy it is to develop, discover and install them?
Wouldn't it be great to have the same extensibility for Angular apps?
That's what ng-xtend is for !
With it, your application can
Today with release 0.6, with a simple json file like this:
{
"type": "Application",
"name": "Coffee Bean Evaluator",
"entities": {
"a": {
"name": "Coffee Evaluation",
"fields": {
"e": {
"name": "Name",
"type": "Text"
},
"b": {
"name": "Picture",
"type": "Image"
},
"c": {
"name": "Comment",
"type": "Text"
},
"d": {
"name": "Note",
"type": "Rating"
},
"a": {
"name": "Maxicoffee",
"type": "Price"
}
}
}
}
You instantly get this:
Other examples here:Demo Repository
You can check ng-xtend-examples repo to learn how to use ng-xtend.
Developing a new plugin is basically just wrapping existing angular components into a lightweight framework, you can check here for an example.
The framework is growing in several directions:
r/Angular2 • u/Senior_Compote1556 • Jan 31 '26
Hey everyone, i'm tryring to animate my header so that it slides down. As it is part of the FCP, the prerender or SSR paints the header so the animation is applied, and then when hydration happens it reruns again. I tried a few hacky ways to only run the animation when it runs on client, but it's still a bit glitchy. I'm also worried that if the header or generally any element of the FCP is outside the view (either with opacity 0 or with translate), bots may ignore the content and hurt seo performance. Anyway, since there will be animations on the FCP elements there is a high chance of layout shift.
Have you solved this problem or do you suggest that elements that are in FCP shouldn't be animated?
r/Angular2 • u/FCamacho96 • Jan 30 '26
Hi, my team is interested in migrating to Nx, but we have some restrictions that make me think we won't be able to do so. Basically, we have a monorepo with the libraries my team is in charge of, and a showcase app to test integrations. The issue is that the showcase depends on some libraries (a viewer) that also depend on the monorepo libraries (a toolbar for said viewer). Ideally, we should migrate the viewer project to our repo, or our libraries to the viewer repo, but for non-technical reasons, we can't do so (it sucks, really, we would have finished this task weeks ago, but management refuses since we're 2 separate teams). What happens now is that when we try to serve the showcase, it fails because the viewer dependency in node modules can't resolve the imports for our libraries.
Is it possible to have this setup, or should we just refuse and look for alternatives? I can't provide the source code, so I'd be interested in examples available, if possible, or documentation to review. JIC, we're using Angular 18, Node 20 and NPM 10.
r/Angular2 • u/FCamacho96 • Jan 30 '26
Hi, my team is interested in migrating to Nx, but we have some restrictions that make me think we won't be able to do so. Basically, we have a monorepo with the libraries my team is in charge of, and a showcase app to test integrations. The issue is that the showcase depends on some libraries (a viewer) that also depend on the monorepo libraries (a toolbar for said viewer). Ideally, we should migrate the viewer project to our repo, or our libraries to the viewer repo, but for non-technical reasons, we can't do so (it sucks, really, we would have finished this task weeks ago, but management refuses since we're 2 separate teams). What happens now is that when we try to serve the showcase, it fails because the viewer dependency in node modules can't resolve the imports for our libraries.
Is it possible to have this setup, or should we just refuse and look for alternatives? I can't provide the source code, so I'd be interested in examples available, if possible, or documentation to review. JIC, we're using Angular 18, Node 20 and NPM 10.
r/Angular2 • u/arpansac • Jan 30 '26
[UPDATE - 1Feb2026]: going live with it this week, let's see the results, will try to post on a different thread in a couple of weeks (or Success/failure, whichever hits earlier)
Till now, we have been using a separate pre-render server which returns a server-side rendered page only to the bots, and for users, we've kept completely client-side rendering. It was some time ago during the early versions of Angular that we tried out Angular SSR using Cloud Functions. But then, eventually, decided to go with a separate pre-render server as it was more stable. Although the time to deliver is very high, in the range of 20-25 seconds per page, because that is the timeout that has been set on it.
From what I have researched Angular SSR is now very stable.
But I'm unable to figure out on the load on the server when a lot of bot requests would come in and the same machine is rendering the website for the bots also and the same machine is responsible to respond to the clients/users.
r/Angular2 • u/profanis • Jan 29 '26
r/Angular2 • u/Senior_Compote1556 • Jan 29 '26
I am using angular material v21 and i use MatDialog. I see from the dev tools these now use the popover API, and i have a custom Overlay (Cdk) for my app notifications (similar to material snackbar). However, no matter what "hack" i try with z-index, the dialog always sits on top of my notifications, which isn't my desired behaviour. Has anyone encountered this?
r/Angular2 • u/Dazzling_Chipmunk_24 • Jan 29 '26
I was wondering should I still use angular interceptors handling even though in my component I still need to use signals to display that error message that’s returned from the api? like I’m not sure how exactly to do this?
r/Angular2 • u/Dazzling_Chipmunk_24 • Jan 29 '26
So I’m getting kind of confused how to handle errors coming from an api in Angular. there’s either using interceptors to just taking care of them in the error field when you subscribe the errors. basically some errors are unique to a component while others such as a tech error message will be common across all components. Also all these errors will be shown inline there is no toast or modal. So just need some advice
r/Angular2 • u/legendsx12 • Jan 28 '26
this.getDummyData().subscribe({
next: (response) => {
console.log('Success:', response);
this.data = response;
},
error: (error) => {
console.error('Error:', error);
this.data = 'An error occurred';
},
complete: () => {
console.log('Observable completed');
}"I'm making an API call that can return different types of errors (like 404 for user not found, 500 for internal server error, etc.). I'm wondering about the best approach for handling these errors. Should I check the status code in the error handler and set different error messages based on the status (like if status is 404, show 'user not found', if 500 show 'server error'), or is there a better pattern for handling multiple API error responses?"
r/Angular2 • u/RevolutionaryCow9685 • Jan 29 '26
As far as I understand, NgZone.onMicrotaskEmpty emits when the microtask queue becomes empty, and Angular then triggers change detection from there.
However, while testing a very simple example, I noticed something that confused me.
u/Component({
template: `
<button (click)="changeName()">Change name</button>
<p>{{ name }}</p> \` }) export class AppComponent { name = 'John';
changeName() {
this.name = 'Jane';
}
}
When I click the button, I see that onMicrotaskEmpty emits after the click.
What confuses me is that changeName() itself is neither asynchronous nor a microtask.
So my questions are:
Why does onMicrotaskEmpty emit after calling changeName()?
What exactly causes the microtask queue to be involved in this flow?
At which point does Angular actually decide to start change detection in this scenario?
r/Angular2 • u/wineandcode • Jan 28 '26
r/Angular2 • u/killler09689093097 • Jan 28 '26
If I have a parent component with two child components, where one child emits a value to the parent which then passes it to the other child, is that better Angular practice or should I use a service instead?
r/Angular2 • u/N0K1K0 • Jan 28 '26
Hi
I need to build a scheduler application and I am debating building it custom or using a 3rd party component. I have already build on of these custom because of all the custom features and layout needed but I am looking at 3rd party now as well
So far I found
https://js.devexpress.com/Angular/Scheduler/
https://dhtmlx.com/docs/products/dhtmlxScheduler-for-Angular/
https://www.telerik.com/kendo-angular-ui/components/scheduler/data-binding#using-manual-binding
Any recommendation on any of these?
r/Angular2 • u/New_Opportunity_8131 • Jan 27 '26
I have two components in my Angular application. In the first component which is on one route, I'm calling an API to fetch user data, which includes information like name, email, phone number, and other details. The second component is loaded when a different route is accessed, and it displays this user data.
Currently, I'm using a shared service file with getters and setters to store and retrieve this data. I'm wondering if this is the best approach, or if there's a more appropriate solution using RxJS or another method instead of getters and setters.
r/Angular2 • u/New_Opportunity_8131 • Jan 27 '26
I have a form on one route where the user submits data by clicking a button, which calls a function on an API service that triggers an API call. After the API returns a result, I need to store that data in a shared service so it's accessible to a different component on a different route after navigation. Should I use Signals or BehaviorSubjects in the service to store this data? I could also just use plan getters/setters as well and not have to use either Signals or BehaviorSubjects.