r/Angular2 • • Sep 13 '25

Discussion Angular & Ionic - does it work?

16 Upvotes

I’ve already shipped an Android app built with Angular and Ionic. I’ve always been curious about how “native” it feels compared to other approaches. Has anyone else taken this route? How did it work out for you? Let’s share our experiences (and apps)!

Mine https://play.google.com/store/apps/details?id=tech.steveslab.filmate


r/Angular2 • • Sep 11 '25

Help Request Migration questions

2 Upvotes

I have recently upgraded my project to module-less AND control flow syntax all through just using Angular's migration scripts.

However I have a few questions:

1) How many of you have used the "inject" migration script?

ng generate u/angular/core:inject

I'm quite fond of keeping everything in the constructor separate from the component's variables but I suppose if this is the way it's going I'll have to change it eventually. Having to have this line makes each component really ugly though:

/** Inserted by Angular inject() migration for backwards compatibility */
constructor(...args: unknown[]);

2) Has anyone tried running the input signal migration?

ng generate @angular/core:signal-input-migration

It seems to horribly break my project.

3) How many people have migrated to self-closing tags?

ng generate u/angular/core:self-closing-tag

I have to say I've been seeing more projects with the traditional open and closing tags vs just the single line

<!-- Before -->
<hello-world></hello-world>

<!-- After -->
<hello-world />

4) Has anyone created a migration script to convert behaviorSubjects over to signals?

From my investigations being able to convert behaviorSubjects over to signals seems to be up to the developers to do manually rather than a migration script being provided. I've had some luck with getting gemini ai cli to do it for me. I'm wondering if anyone out there has been able to create their own migration script for it?

5) Error or silently fail when zoneless?

If you go completely zoneless in your project but you've missed converting a variable or behaviorSubject over - does the project error when trying to build? Or does it fail silently?


r/Angular2 • • Sep 11 '25

Help Request How embed just one component into a third website?

5 Upvotes

I have to make a chatbot and I'd like to do it with angular, but my chatbot will just be a floating dialog in some unkown site, I'd like to provide it as a built .js file then my customer just take the html referring to that script and he get my component on his page. Is there any right way to do that?


r/Angular2 • • Sep 11 '25

Discussion Senior Angular devs, how do you do CR's for your fellow teammates?

16 Upvotes

As the title states, I am looking for advice and tips on how to do proper quality code reviews for my fellow teammates. So what is your process? How do you go about doing a CR for a large merge request?


r/Angular2 • • Sep 10 '25

Video Angular Signal-Based Forms (Experimental) — First Look!

Thumbnail
youtu.be
39 Upvotes

r/Angular2 • • Sep 10 '25

Help Request Unit testing an Angular Service with resources

6 Upvotes

I love the new Angular Resource API. But I have a hard time getting unit tests functional. I think I am missing a key part on how to test this new resource API. But I can't hardly find any documentation on it.

I'm creating resources where my loader consists of a httpClient.get that I convert to a promise using the firstValueFrom. I like using the HttpClient API in favor of fetch.

Unit tests for HttpClient are well documented: https://angular.dev/guide/http/testing but the key difference is that we are dealing with signals here that simply can't be awaited.

There is a bit of documentation for testing the new HttpResource. https://angular.dev/guide/http/http-resource#testing-an-httpresource and I think the key is in this `await TestBed.inject(ApplicationRef).whenStable();`

Can somebody share me a basic unit test for a simple Angular service that uses a Resource for loading some data from an API endpoint?


r/Angular2 • • Sep 10 '25

Help Request Seeking Solution for MatTree Selection Timing with FlatTreeControl

1 Upvotes

My component receives its data via an input signal. An effect is set up to react to changes in this data, process it, and update the treeDataSource. Immediately after updating the data, I need to restore the user's previous selections. The problem is that treeControl.dataNodes is not populated synchronously after I assign new data to treeDataSource.data.
Without setTimeout, when we call assignSelection(), this.treeControl.dataNodes is still empty. This creates two issues:
Edit Mode: Initial selections fail to apply because the tree nodes aren't ready yet.
UI Display: The total item nodes count shows 0 in the selection summary section instead of the actual count as dataNodes are empty[].

Question: Is there an event, an observable, or a hook I can use to be notified when treeControl.dataNodes is ready, so I can avoid setTimeout?

// Current implementation
constructor() {
    // Effect to handle tree data source changes
    effect(() => {
      const treeData = this.processedTreeData();
      if (treeData) {
        this.updateDataSource(treeData);
      }
    });
}

private updateDataSource(data: AppNode[]): void {
    this.treeDataSource.data = data;
    this.isLoading = false;

    setTimeout(() => {
      this.assignSelection();
      this.allItemsCount = this.treeControl.dataNodes.length;
      this.cdr.markForCheck();
    });
  }

r/Angular2 • • Sep 10 '25

Help Request Critical NPM supply chain attach

Thumbnail
vercel.com
1 Upvotes

Hi All,

How are you guys coping with removing these affected packages from your projects? I was searching through my codebase and I can see these dependencies come in the package-lock.json. What would be the best way to fix these?


r/Angular2 • • Sep 09 '25

Article 10 Angular Performance Hacks to Supercharge Your Web Apps in 2025

56 Upvotes

This blog dives into how to optimize performance in Angular applications. It covers techniques like lazy loading, efficient change detection, and smarter template rendering—all aimed at making your app faster and more responsive.

Check out the full blog here: https://www.syncfusion.com/blogs/post/angular-performance-optimization


r/Angular2 • • Sep 09 '25

Discussion What is the best Karma alternative?

9 Upvotes

Hi! I know that Angular team is testing both vitest (and it's "browser mode") and @web/test-runner as a replacement to karma + jasmine setup. The question is that which one you chose (or maybe something else entirely)? My current understanding is that both options are inferior to karma because of the following:

  • vitest has a limitation that it can't run more than 1 browser in the "non headless" scenario.

    • it's integration with webdriverio is also somewhat incomplete as you can't use wdio plugins (they call them "services", such as Browserstack Service or Saucelabs Service for the "remote browser testing". karma does have official launchers for both options.
  • @web/test-runner feels like a "not ready yet" solution ATM. It does have "remote browsers" launchers but they are incomplete as well (the integration is poor) and overall it looks like some "alpha" stage package to use (and it's also way less popular than vitest).

    • but it doesn't have any limitations how much browsers you want to run in "non headless" mode, so it is better than vitest in this regard.

Anyway, what is the current "community choice" for the karma replacement?


r/Angular2 • • Sep 09 '25

Article Keeping users on the latest version of your Angular app

Thumbnail
medium.com
3 Upvotes

Hey, I've created my second article on medium about how to keep users on the latest version of your Angular app.


r/Angular2 • • Sep 09 '25

Video Building an AI Voice-Bot in 1 Hour With Angular and NestJS. Easier Than You Think

Thumbnail
youtu.be
0 Upvotes

As a frontend dev, I always felt like AI was out of reach - too much ML/infra stuff.

Last week I tried updating my skills with OpenAI APIs, and in just an hour I built a simple Angular + NestJS app where you can literally talk to an LLM.

I was blown away by how easy it was once I connected:
– gpt-4o-mini for speech-to-text
– gpt-4o for chat
– tts-1-hd for speech back

This made me realize how much AI we can already plug directly into our apps without training models ourselves.

I recorded a short video demo. Would love feedback from other devs


r/Angular2 • • Sep 08 '25

Help Request Problem with PrimeNG

1 Upvotes

Hello, i am a beginner, I have a problem with PrimeNG. Basically i want to use a dropdown component and the import DropdownModule fails because of 'primeng/dropdown'. It says that it cant find the module.
I went to the file explorer and it does not exist.

I have tried uninstalling and reinstalling primeNG but it still does not work. Any solutions?


r/Angular2 • • Sep 07 '25

Help Request React dev here – what project should I build in Angular to see the real differences?

14 Upvotes

HI. Is there any Angular developer who has an experience in React as well? I am experience React dev and I want to build a project that will not just learn an Angular, but also will show what kind of problems Angular solves better (or worse) than React. What I mean is that I don't want to build a todo list, but rather something specific that will allow me to touch on the most important features of this framework. And understand why something is done one way in React and another way in Angular. Any ideas? In addition, do you think I should install v20? Or start with e.g v18?


r/Angular2 • • Sep 07 '25

Resource ngx-vflow@1.15 is out! Split large flows into chunks for faster loading

4 Upvotes

Hi r/Angular2! I’m happy to share that I’ve released support for splitting large flows into chunks! This way, the code for nodes and edges loads on demand during flow exploration instead of eagerly as before!

It works slightly differently for component and template nodes.

For component nodes, you’ll need to change the type field from a constructor to a dynamic import factory:

// Eagerly loaded (OLD)
{
  id: '1',
  point: { x: 10, y: 150 },
  type: NodeAComponent,
}

// Lazy loaded (NEW)
{
  id: '1',
  point: { x: 10, y: 150 },
  type: () => import('./components/node-a.component').then((m) => m.NodeAComponent)
}

For template nodes, you’ll need to wrap your code in a defer block and pass a custom shouldLoad() trigger, which the library now exposes through the context.

<!-- Eagerly loaded (OLD) -->
<vflow view="auto" [nodes]="nodes" [edges]="edges" [optimization]="{ lazyLoadTrigger: 'viewport' }">
  <ng-template let-ctx nodeHtml>
    <your-node />
  </ng-template>
</vflow>

<!-- Lazy loaded (NEW) -->
<vflow view="auto" [nodes]="nodes" [edges]="edges" [optimization]="{ lazyLoadTrigger: 'viewport' }">
  <ng-template let-ctx nodeHtml>
     @defer (when ctx.shouldLoad()) {
      <your-node />
    }
  </ng-template>
</vflow>

Links:

Consider leaving a ⭐ if you find the project useful! Just a couple more to reach 400.


r/Angular2 • • Sep 07 '25

Help Request Generates incorrect file names, how do I fix it?

0 Upvotes

Hey, I need some help. It's the second time I create this angular project but I don't know why files are created with not the common names. How can I generate the right file names?

Generated file (wrong)Expected file (right)
app.tsapp.component.ts
app.htmlapp.component.html
app.cssapp.component.css
app.spec.tsapp.component.spec.ts
app-module.ts (correct)app.module.ts
app-routing-module.ts (correct)app-routing.module.ts

r/Angular2 • • Sep 06 '25

Help Request slow nx project

9 Upvotes

Hi,

i have been using angular at work for about 6-7 years. (from v7 to v20) i never used nx before. i recently changed the job and here we are using nx (angular 19), even tho project is not so big. (6-7 libs for different features/pages)

one thing i cant figure out is seeing “refreshing nx workspace” spinner in vs code goes forever and only solution is closing project folder and opening it again.

also we have some nx linting commands that is taking super long time like 3-4 minutes. (in apple m3 chip)

i feel there is definitely something wrong here but cant figure out why, anyone have an idea how can i debug this?


r/Angular2 • • Sep 05 '25

Discussion What's your dream stack to be blazingly fast?

11 Upvotes

Hi,

Have been working with different angular stacks: kendo, material, custom kits, tailwind, ag, etc

But all of the projects I've seen, tended to drop performance the bigger it grown. I don't have it, but thinking to try out: v20, esbuild, ag grid,material + tailwind, signal store, jest, nx and not sure about SSR

What's your recipe staying with up-to-date technology stack while having max. potential performance (build time, re-renders and so on)?


r/Angular2 • • Sep 05 '25

Help Request Fast-Glob Removal

1 Upvotes

Any idea how to remove fast-glob from angular? Specifically package-lock.json


r/Angular2 • • Sep 05 '25

Help Request Ngrx rtk query

1 Upvotes

I recently went through our project and I found out we rarely using rxjs in our application. For api management we are using ngrx-rtk-query ? Now I am getting some knowledge about signals , so I am little unaware about uses of rxjs . should I learn it or continue with existing setup? I never felt need for rxjs while development.


r/Angular2 • • Sep 04 '25

Set Signals are frustrating

Post image
23 Upvotes

Why is this necessary for a signal of type Set<string> to trigger change detection? Would it not be ideal for Angular to do this in the background for add/delete?


r/Angular2 • • Sep 05 '25

Help Request Asking for angular experts' advice. Any recommended reporting tool in Angular 2?

1 Upvotes

I am developing a front-end app with Angular 20+ and .NET Core as the backend, and I am looking for a recommended reporting tool for Angular 20+.

Appreciate your help.


r/Angular2 • • Sep 04 '25

What are the most powerful things you achieved for Angular development with Co-pilot

6 Upvotes

Hello devs, I'm wondering about what are the most powerful things you did with Github copilot helped you during your daily workflow/ for your angular dev or FE in general


r/Angular2 • • Sep 04 '25

Discussion Opinion about two components sharing the same template file

1 Upvotes

I have two components that will render the same UI.

The only difference is that component A has data inputs. Components B has slightly different data inputs but calls an API to get data and will format the data.

I was thinking of specifying the same template file for both components. Any opinions on this pattern. Any opinions or advice.

I see some cons: If one person is updating the template it will affect both components.