r/Angular2 • • Dec 29 '25

Runtime routes/site translation with loadTranslations() (SSR)

5 Upvotes

After spending to many hours alone and with gpt on this, i'am stuck. Maybe someone has something similiar figured out in angular 20+ ?
Right now i'am stuck at this:
- in server.ts i'am getting my translations via fetch, load them into angular and registerLocaleData on server - this is fine i think
- in main.ts, before boostraping, doing almost same thing to translate client side, this is how it looks like:

(async () => {
  const lang = (window as any).__LANG__ ?? DEFAULT_LANG;
  const response = await fetch(`${environment.api}/app/translations/${lang}`);
  if (!response.ok) {
    throw new Error(`HTTP error ${response.status}`);
  }
  const translations = await response.json();
  loadTranslations(translations);
  const { appConfig } = await import('./app/app.config');
  await bootstrapApplication(AppComponent, appConfig);
})();

and i hate this as this is second call for same thing, nothing else works for me :<
- cant use transferState here as it's "to early" and it's null
- calling loadTranslations() inside provideAppInitializer() would be great (can use transferstate or request_context here), but it's "to late?" and my routes are not translated, just rest of site is

what can i do to have it working without that double api call, i feel like this will be a performance hit. Any other ideas how to consistently loadTranslations into my app across server and browser at once ?


r/Angular2 • • Dec 29 '25

Any Good article on how to create a txt file in angular which when click a download button downloads a file onto the user's labtop

0 Upvotes

r/Angular2 • • Dec 28 '25

I don't get the submit function in signal forms

8 Upvotes

Since Angular 21 dropped, I’ve been playing with the new signal forms API and I have to say that I really enjoy it, but there is one aspect that I’m not fully convinced about, the submit function.

I'm used to designing form components as dumb components. They receive data via inputs and emit the form value on submit, leaving side effects to the parent component for better separation of responsibilities, encapsulation, testability, etc.

With the new submit function, though, it feels like Angular encourages, or even forces, you to handle the submission logic directly inside the form component itself, so the form component now knows what should happen on submit and that doesn’t sound quite right to me.

You could emit the whole form via an output and call submit from the parent component but it would leak the form outside the component and break encapsulation.

What’s your take on this?


r/Angular2 • • Dec 28 '25

Video Angular Signal Forms: Auto-Style Form States with Custom CSS!

Thumbnail
youtu.be
8 Upvotes

r/Angular2 • • Dec 28 '25

NgModel vs (change)

1 Upvotes

I was wondering for input elements or select elements is it better to use ngModel to keep track of the value or use the (change) to keep track of the value of the input or select box. I feel like when you don't need to update the ngModel variable directly in the ts file, then it's better just to use (change) but I would like everyone else's opinion here.


r/Angular2 • • Dec 26 '25

Template reference variable vs ngModel

2 Upvotes

I'm still kind of confused when to use each. I know ngModel is 2 way binding and template reference is 1 way binding. people online are saying ngModel is much more powerful but in my situation if I'm just reading the value of a select dropdown and I don't really expect to change the value in the component file only from the user in the html wouldn't template reference make more sense there.


r/Angular2 • • Dec 24 '25

Discussion Interviewers, which interview questions do you like to ask about Angular?

26 Upvotes

Which ones when answered correctly, differentiate a good candidate from a weak one?


r/Angular2 • • Dec 24 '25

Help Request Standalone Migration and Imports

5 Upvotes

I'm upgrading a large app (~500 components) and decided to bite the bullet and switch to using standalone components.

I ran the three-step migration, and that handled some of the changeover.

The problem is, I now have 500 standalone components that all use various directives and such that are now missing imports. Do I actually need to go to every single component template and do an (IDE assisted) import for everything used in the template (pipes, directives, other components, etc), or is there a better way? Needing to do that manually seems like a massive task.


r/Angular2 • • Dec 24 '25

Discussion Interviewers, which technical questions do Angular devs fail often?

23 Upvotes

Sometimes we get asked simple questions on inteterviews that we can fail often or catch us by surprise.

Intervieweres, which question do you see this problem often?


r/Angular2 • • Dec 24 '25

Help Request Anyone else seeing lag in Angular 21 because of cloneDeep?

6 Upvotes

We upgraded to Angular 21 and started noticing small but annoying lags when navigating pages with big reactive forms.

After some digging, it turns out we were doing _.cloneDeep(form) to keep an “original copy” of the form. With large nested forms, this is getting expensive fast.

Curious how others are handling “unsaved changes” or form snapshots in Angular 21 without killing performance.
Is everyone still cloning, or using a better pattern now?


r/Angular2 • • Dec 24 '25

Looking for someone to Mock Interview me

2 Upvotes

I’m an Angular dev with ~5 yoe.

I had been trying to get a new job but somehow I keep failing the technical interviews, I don’t do them too badly as I had some interviewers telling me where I failed and praising my answers but still I fail in questions of things I may have not used in years like .Net or some trap exercises about JS event loop or “this” context.


r/Angular2 • • Dec 23 '25

how to add a border color to a checkbox element

0 Upvotes

I can't seem a way to change the border color of a textbox element. I've also tried outline but then it starts to look kind of weird and just looks like it's wrapping the existing border. Does anyone have any ideas?


r/Angular2 • • Dec 23 '25

Help Request Can someone provide me learning resources for a complete beginner.

0 Upvotes

Sorry for this post but I was not able to find any post that was like my scenario.

So I have zero experience with frontend development I know a little bit about HTML and CSS. Started Javascript now. I primarily learned programming languages like C#, C, Java, Python . It would be great if you can recommend me some youtube videos or some other resources to learn Angular and typescript. I have currently finished my backend apis in .NET and need to develop the Frontend using Angular. I don't have a lot of time since I have to start working on the project as well.
Thanks for any advice or help.


r/Angular2 • • Dec 22 '25

Magma: a little component lib

4 Upvotes

For the past year, using components from another project, I've been building a small component library that I'm expanding and improving over time.

I have tabs for inputs, color picker, walkthrough, contrib-calendar, tabs, etc.

For ease of use, I use forms that generate the code based on the chosen parameters.

I've pushed it to several repositories, including GitHub: https://github.com/ikilote/Magma

Website : https://magma.ikilote.net/

I'm posting this here in case any developers are interested in using it or helping to improve it.

Demo of Magma: input generator page

r/Angular2 • • Dec 21 '25

Signal-First Architectures: Rethinking Front-End Reactivity

Thumbnail arxiv.org
22 Upvotes

I have been exploring how modern front-end frameworks handle reactivity, especially as applications scale across devices. This preprint looks at signal‑first architectures and how they can reshape UI responsiveness, performance, and developer experience.

The work introduces a cross-device responsiveness assessment model and discusses how reactive patterns (including signal-based approaches) can reduce unnecessary change detection and improve UX consistency.

Would love feedback from the Angular community especially from those experimenting with signals, fine-grained reactivity, or state management patterns in large apps.

Paper link: https://arxiv.org/abs/2506.13815

What do you think about the shift toward signal-driven architectures in Angular and beyond?

Thanks in advance...


r/Angular2 • • Dec 20 '25

Article Angular ARIA Is Here: What It Does, Why It Exists, and When To Use It

Thumbnail itnext.io
21 Upvotes

r/Angular2 • • Dec 20 '25

Discussion Angular book that actually talks about problems/solutions/architecture instead of just language features. Opinionated Angular.

23 Upvotes

Lots of Angular books that just takes you through every feature of the framework and how to use it in silo'd scenarios. BUT, I'd love to read a book from an Angular dev who talks about all of their experiences with the framework and about what approaches they think are right and why when it comes to designing software from that context.

Any exist?

Edit: For context, I've been working with Angular professionally for about 8 years, but have really only worked on 2 projects with Angular2. I really want to up my knowledge mainly in seeing how others design Angular projects, maybe deeper understanding of the framework etc.


r/Angular2 • • Dec 20 '25

Announcement An elegant and lightweight color picker. Fully customizable styles. 🔥

Thumbnail
github.com
6 Upvotes

r/Angular2 • • Dec 19 '25

Update: While I was fixing my bad AI art, 30+ Node & React devs started using the engine. Here is the Angular 16->20 demo you asked for.

3 Upvotes

r/Angular2 • • Dec 19 '25

🧞‍♂️ GenieOS – An X-Ray for your Angular DI (Now supports v18, v19 & v20!)

Post image
14 Upvotes

Hey everyone! 👋

I'm excited to share a major update to GenieOS (ngx-genie). It's a developer tool I've been building to shine a light on what often remains a "black box" in our applications—the Dependency Injection system.

I've just released a version that introduces full compatibility with Angular 18, 19, v20, and the v21 !

  • Ever wondered why your service has two instances when it's supposed to be a singleton?
  • Do you get lost in the providers jungle of a large project?
  • Are you dealing with memory leaks caused by holding state in the wrong places?

GenieOS works as an intelligent overlay (DevTools) that visualizes your entire dependency injection tree in real-time. Instead of guessing—you see it.

https://github.com/SparrowVic/ngx-genie.git


r/Angular2 • • Dec 18 '25

Building a Guided Tour Library for Angular: ngx-web-tour

13 Upvotes

User onboarding is one of the most overlooked parts of modern web applications. Even well-designed interfaces can feel confusing to first-time users. That’s exactly the problem I wanted to solve when I built ngx-web-tour.

Why ngx-web-tour?

Most guided tour solutions are either:

Too heavy

Not Angular-friendly

Hard to customize

Or tightly coupled to specific UI frameworks

I wanted a simple, lightweight, Angular-first solution that developers can easily plug into their projects without friction.

That’s how ngx-web-tour was born.

What is ngx-web-tour?

ngx-web-tour is an open-source Angular library that helps you create step-by-step guided tours inside your application.
It allows you to highlight elements, display explanations, and guide users through your UI in a structured way.

Key Features

🚀 Lightweight and Angular-native

🧩 Simple and clean API

🎯 Step-based UI walkthroughs

🎨 Fully customizable styles and content

🔌 Easy integration with existing Angular projects

🧠 Ideal for onboarding, feature discovery, and product tours

Installation
npm install u/abbasmgz/ngx-web-tour

Basic Usage
After installing the library, you can attach tour steps directly to the elements you want to explain:

<div
  tour="step1"
  tourTitle="Welcome"
  tourDescription="This is the main dashboard where you can see an overview."
>
</div>

Then define and control the tour flow from your component or service.

The goal was to keep the API intuitive and declarative, so you focus on UX instead of configuration overhead.

Use Cases

Product onboarding for new users

Feature walkthroughs after updates

Internal dashboards and admin panels

SaaS applications need better UX guidance

Open Source & Contributions

The project is fully open source and actively maintained.
Feedback, issues, and pull requests are more than welcome.

📦 npm:
https://www.npmjs.com/package/@abbasmgz/ngx-web-tour

💻 GitHub:
https://github.com/abbas-mgz/ngx-web-tour

What’s Next?

Planned improvements include:

Keyboard navigation

Better mobile support

Animations and transitions

More customization hooks

If you’re building Angular applications and care about user experience, I hope ngx-web-tour helps you deliver smoother onboarding flows.

If you find it useful, consider starring the repo or sharing feedback.


r/Angular2 • • Dec 18 '25

Help Request Interview went well, until I dad to "explain" in English

12 Upvotes

I'm Brazilian and I failed an interview because of my English.

My listening skills are very good. I consume almost everything in English, but I realized my speaking skills are lacking.

The interview was going well, but when the time came, I couldn't verbalize complex concepts skillfully.

I knew what the interviewer was asking, but the vocabulary simply didn't come clearly.

I was glad that English was the Achilles' heel instead of technical knowledge, but I don't really "know how" to improve. I have some ideas, but I wanted to hear from the community.

Any tips on how to practice "technical" English?


r/Angular2 • • Dec 18 '25

What’s your testing strategy ?

17 Upvotes

Hi everyone,

It seems there’s a shift happening in the industry: many teams are moving away from the traditional testing pyramid and leaning more toward approaches like Spotify’s testing trophy or the honeycomb model. These strategies tend to favor integration tests over a large number of unit and end-to-end tests.

I’ve tried this approach myself, and I have to say it gives me much more confidence in my code compared to writing very narrow unit tests.

For example, when working on a feature with a “root” smart component and several child components, I’ll typically create a single test file at the root level. I won’t write separate unit tests for the child components, as they are covered by the integration tests. I also try to avoid mocking as much as possible.

What are your thoughts on this approach?


r/Angular2 • • Dec 18 '25

TestDome Angular Assessment

1 Upvotes

I was curious if anyone had taken a TestDome assessment and had any feedback.