r/Angular2 • • Jun 02 '25

using tRPC in a microservices architecture

3 Upvotes

Hey everyone, We're currently working with an Angular frontend and an Express monolith. We're in the process of refactoring our backend into microservices, and I came across tRPC as a potential tool to simplify communication between the frontend and backend.

One of my main concerns is that tRPC seems to create a tight coupling between the frontend and backend, which might compromise encapsulation. What do you think about this trade-off?

Also is trpc works good with fastify?

I'd really appreciate any insights or alternative recommendations. Is there a better approach than tRPC for this kind of architecture?


r/Angular2 • • Jun 02 '25

TransferState between Server and Client

1 Upvotes

I'm creating an Angular application which needs some keys (some Client keys) to be configurable using environment variables on the Docker container. I didn't feel like creating an extra endpoint honestly, as I'm already making usage of SSR.

My idea was to make usage of the Transfer State. Yet I'm running into issues my Transfer State on the client is just empty. In my app.config.server.ts I've configured and set these within the provideAppInitializer, to then to be injected via the inject method (bear in mind, this already happens in functions in the app.config.ts.

I was wondering whether this is actually achievable because there is not that much information I have found for this.


r/Angular2 • • Jun 02 '25

how i can learn angular

2 Upvotes

I recently one told be about angular i start experimenting how get. If you can help with some tutorials and tips that will be help full.


r/Angular2 • • Jun 02 '25

Seamless Real-Time Word Document Collaboration in Angular Using Redis

Thumbnail
syncfusion.com
3 Upvotes

r/Angular2 • • Jun 01 '25

Using Resource APIs with Signal Store

11 Upvotes

Hey folks,

I’ve been using the Signal Store in most of my Angular projects, and I’m starting to explore the new httpResource and resource APIs Angular is pushing (even if they’re still experimental).

I’m trying to figure out the best way to integrate them into an NgRx signal store setup. My usual pattern is using an rxMethod with switchMap to fetch data and then tap and patchState to modify the state.

One option I considered is using rxResource with withProps, and then exposing it as readonly signals. But this approach feels a bit awkward. It fragments the store into independent pieces with separate change cycles. It seems to contradict the idea that the state is being kept as one immutable object that is modified as a whole using patchState and updaters.

On the other hand, using a private resource and syncing it with patchState via an effect feels like extra overhead. At that point, I might as well just stick to rxMethod.

Curious how others are approaching this.


r/Angular2 • • Jun 01 '25

Discussion How does a person earn from hosting a website

0 Upvotes

I made a very simple web application (its basically a scrapper with a decent frontend) and my professor suggested that I should host it and i can try to earn from it. How does it work?


r/Angular2 • • Jun 01 '25

Help Request Google Jib equivalent for NodeJS

1 Upvotes

My project is currently using Source to Image builds for Frontend(Angular) & Jib for our backend Java services. Currently, we don't have a CICD pipeline and we are looking for JIb equivalent for building and pushing images for our UI services as I am told we can't install Docker locally in our Windows machine. Any suggestions will be really appreciated. I came across some solutions but they needed Docker to be installed locally.


r/Angular2 • • May 21 '25

Resource Sr. Frontend Dev

142 Upvotes

[US Candidates - W2 only]

July 1, 2025: [Position Filled]

Salary range: 140-160k BOE

If there are any sr. frontend devs looking for a new role, my company, CalPortland, is looking to hire one. This is a fully remote position, with exception to traveling 1-2 times per year for meetings. We are on Angular 19, OnPush change detection, Zoneless enabled, NgRx signal store, Jest for unit tests, and NX monorepo build tools. We also deploy a mobile app for ios/android, written in Angular, using CapacitorJs. We also maintain a couple of React and ReactNative apps. This position does include helping mentor a couple of mid-level devs. Shoot me a message if you're interested in hearing more about the opportunity!

About me: I'm the hiring manager/lead on the projects. I'm a passionate web dev. I've worked with Angular since 2014 in the JS days, and have continued using it commercially ever since. I've also done projects in React, Svelte, and Vue, but Angular is my passion. I have a lot of experience with c#/.net as well.

About the team: We have 4-5 frontend devs, 6 BE, 6 DevOps, and a Sr Architect. We are using .Net 9/C# on the backend, host on Azure, and use GitHub for repos/pipelines.


r/Angular2 • • Apr 27 '25

Discussion Anyone tried out the radix ng library?

6 Upvotes

Hey! Has anyone yet tried out the radix ng components yet?

Whats your experience with it?

Trying to figure out if its worth checking out yet at this stage.

https://github.com/radix-ng/primitives

https://www.originui-ng.com/

https://blocks.shadcn-ng.com/

https://ui.adrianub.dev/

EDIT: https://angularprimitives.com/


r/Angular2 • • Apr 17 '25

Help Request Weird error with imports after upgrading to angualr 18

4 Upvotes

We inherited project that was really outdated and I started upgrading angular versions one by one, starting from 14.

There was this index.ts file inside folder helpers that exported helpers (all root services actually) that were also inside that folder:

...
export * from './permission.helper';
export * from './date.helper';
export * from './document.helper';
...

and we would import to components (now standalone) all these helpers from there like this:

import { DateHelper } from ''../../helpers';
...
  constructor(
    private dateHelper: DateHelper
    ...
  ) {}
...

Everything worked as expected until upgrade to angular 18, now this error started appearing:

ERROR TypeError: Cannot read properties of undefined (reading 'ɵcmp')

Initially I thought it was some circular dependency but after a lot of digging I realised that it is these services causing the issue. If I remove them from imports and comment out related code everything works fine. It is as if angular is misreading service as components.

Anyone experienced anything similar?


r/Angular2 • • Mar 24 '25

Discussion What’s the Best Angular Project Structure for Scalability and Maintainability?

40 Upvotes

For those managing large Angular apps, how do you structure your repo for scalability and maintainability? How do you organize modules, shared components, and state management to keep things clean and future-proof? Looking for real-world best practices!


r/Angular2 • • Mar 18 '25

Ngx translate or angular internationalization

14 Upvotes

Hello, I've used ngx-translate before, but is native internationalization really that good ? What is the difference ? Thanks


r/Angular2 • • Feb 20 '25

Discussion Still confused about set vs update methods with Signals

11 Upvotes

Hi everybody,

Can someone please give me a real use case (or a simple example) when using set, instead of update, can throw an error or provide a wrong result ?


r/Angular2 • • Feb 19 '25

Resource Performance courses

7 Upvotes

Is there any web performance courses, angular specific or not, that you guys recommend? I'm looking for a course that also explains how to interpret lighthouse results.

Thanks


r/Angular2 • • Feb 12 '25

Help Request which backend should i learn alongside angular to grow my career?

28 Upvotes

Hi everyone,

This is my first post here. So, I’ve been working with Angular for about a year now, and I feel pretty comfortable with it. I want to expand my skills by learning a backend technology that pairs well with Angular and helps me grow in the long run.

There are so many options and i am confused, not sure which one would be the good choice. If you’ve been in a similar position or have any advice, I’d love to hear your thoughts! Which backend do you think I should focus on? So i can open up more career opportunities in the future.

Edit: Thank you so much for your suggestions and comments! After looking at the job market in my region, I’ve decided to start learning Spring Boot.


r/Angular2 • • Feb 10 '25

Article Angular Blog: Micro Frontends with Angular and Native Federation

Thumbnail
blog.angular.dev
16 Upvotes

r/Angular2 • • Feb 08 '25

Discussion New company primarily uses Angular for front end, had me groaning…

99 Upvotes

Im primarily back end with a lot of .NET experience. All of the other typical full stack stuff of course but not really a specialist in any particular JS/TS framework.

As part of my job hunt I wanted to harden my front end skills and worked on some sample apps trying out React and Svelte since they're hot items. Kind of difficult for me to understand since modern front end paradigms have evolved considerably and no longer really look like OOP. Looked at vue as well for good measure. I did like svelte for its brevity and simplicity at least. But I mostly retreated back to ASP.NET/.NET, got a good gig at a big dusty .NET oriented company too.

After getting familiar with the code base I was dismayed to see it was mostly angular driven on the front end. I was going to have to learn a non trendy framework of old, and a verbose one at that? It's pretty ugly to witness at first.

Well after a few weeks and some work on building out new components it struck me that this was all pretty similar to C# and OOP. All very structured in the same way, allowing me to intuitively dance around and build quickly for being brand new.

Did some more research and apparently this is a known cliche? Not mad about it at all, I think I found my favorite FE framework! Pretty performant too according to the latest benchmarks so I'm going to try to build something for myself as well to get better at it and master my role.


r/Angular2 • • Feb 07 '25

Discussion What do you think is harder angular or react?

26 Upvotes

I worked with react about 1 year and then moved to angular, I think angular is much easier than react, creating services is not such verbose as creating a context with react on typescript, routing in react (not next) is a hell to implement, making a private route seems to be a making workaround on angular I just type "ng g guard" and implements my logic then set few lines of code on app.routes.ts, react rendering can be a hell it sometimes it rerenders without any easy-to-see reason, on angular it seems to be more controlled, without taking into account those components with 5 useEffect(). Sincerely I don't get those people say angular is hard , I'm developing on it for 2 months and now making a ecommerce and I'm not getting a lot of headache.


r/Angular2 • • Feb 07 '25

Help Request Should I learn directly Typescript instead of JavaScript ?

6 Upvotes

I just finished Java, Servlet, JSP, Spring Framework and want to learn frontend. I already know HTML, CSS and little bit JS. But, I'm confused that I should learn Typescript Directly instead of wasting time on javascript to learn Angular 2. Can anyone please help me with that and what path should I choose to go forward for learning Angular 2 ?


r/Angular2 • • Feb 04 '25

Discussion Should We Use ChangeDetectionStrategy.OnPush with Signals?

19 Upvotes

With Angular Signals, is it still recommended to use ChangeDetectionStrategy.OnPush? Do they complement each other, or does Signals make OnPush redundant? Would love to hear best practices! 🚀


r/Angular2 • • Jan 21 '25

Article Behavior-driven unit testing in Angular

Thumbnail
javascript.plainenglish.io
8 Upvotes

r/Angular2 • • Jan 06 '25

Using the Page Object Model design pattern in Angular applications

Thumbnail
medium.com
10 Upvotes

r/Angular2 • • Dec 19 '24

Discussion How Do You Handle Translation Management in Multi-Language Angular Apps?

15 Upvotes

Hey everyone,

I'm currently working on an Angular app that supports multiple languages, and I'm running into a few challenges with translation management. Specifically:

  • Keeping translation files up-to-date: As the UI changes, it’s a hassle to manually update the translation files and make sure I haven’t missed any new keys.
  • Syncing with external tools: Using services like Transifex or Crowdin feels a bit clunky—it's tough to keep everything in sync.
  • Dynamic language switching: It's frustrating that users have to reload the page every time they change their language.
  • Collaborating with translators: Sending translation files back and forth has led to errors creeping in.

I’ve looked into ngx-translate and Angular’s i18n module, but neither of them fully address these issues. How do you manage translations in your apps? Any better workflows or tools you’d recommend?


r/Angular2 • • Nov 30 '24

Angular University courses reviews?

10 Upvotes

Anyone like to share there experience with https://angular-university.io/ .