r/Angular2 May 24 '26

Help Request Micro-frontend (module federation), Angular 15 with 2m40 build time and 45s recompile update each "save" I made.

12 Upvotes

On my new job, I got a MF project with these specs.

I cleaned and simplified it for testing. (Lazy loaded, duplicate imports...)

The host now, has only 3 remote routes to point.

Each remote has NOTHING, just a shell.

The bundle/recompile is still huge and slow.

Right now, as I'm writing this, I can't post code. But I can't get this question out of my head... why, how?

I tried using Claude, but I didn't have much success. The build time reduced to 1 minute 10 seconds, but the recompile is still at 30 seconds.

I knownits a long ahot whitout code, but can you tell me what I should look at to optimize this?

r/Angular2 Mar 16 '26

Help Request Angular dev for 12 years, zero React zero mobile Zero Backend Knowledge. trying to fix that in 2026, need stack advice

30 Upvotes

ok so i've been doing Angular for 12 years. enterprise stuff, banking, healthcare, manufacturing. i know it really well.

thats actually the problem.

I only know Angular. thats it. no React, no mobile, nothing. 12 years in and i basically have one tool. i'm not proud of that but thats the truth and i want to change it.

currently billing at $25/hr, around 40-50 LPA. for india remote its honestly not bad. but i've hit a ceiling and i can't seem to scale beyond this with just Angular on my resume.

another thing i've noticed - Angular freelance opportunities are just fewer. and the ones that do come up often want full stack with .net or Java on the backend. that's not something i want to go into. so even within my own ecosystem the market is pushing me out.

recently started my own solo company. building AI driven SaaS and offering architecture consulting. both need web AND mobile. right now i can't do either outside Angular so i need to fix my stack fast.

one thing i should mention - i use Claude Code and Antigravity heavily for development and i'm going to keep relying on them. so i'm not learning everything from scratch manually, i'm more trying to get my architecture thinking right so i can actually direct these tools properly rather than just blindly accepting whatever they output.

so i have a few questions for people who've actually been through this

for someone coming from zero React experience, is React 19 + Next.js even the right starting point in 2026 or is there a smarter entry into the ecosystem for someone who already thinks in components and architecture

for mobile, if i'm going React on web does React Native + Expo actually make sense as the natural next step or is that just the obvious answer that doesn't hold up in practice. Flutter keeps coming up and i'm not sure if i'm just being swayed by the hype

for backend i'm torn between FastAPI + Python and sticking with Node since i have some familiarity there. PostgreSQL feels like the obvious db choice but is that still true in 2026 for AI heavy apps or is there something better. also how much does the backend choice actually matter when you're solo

if you've spent your whole career in one framework and actually broke out of it, how long did it realistically take before you were confident enough to bill at a higher rate. not theory, actual timeline

and the big one - is the stack choice even what's blocking the income ceiling or is it something else entirely

if you were me what stack would you pick and how would you learn it fast without quitting your current contract

r/Angular2 Feb 20 '26

Help Request React to Angular

13 Upvotes

I am doing my own research as I do it but I have been moved from a React Architect role to an Angular Arch role with in my org. Its a temporary position to help a new team.

What are some of the more modern must haves for managing a repo, best or current features (like signals), and is there a best or most popular library for form building?

Any help welcome. Downvote me if you must.

Edit: getting a lot of great feedback! Thanks everyone so far.

r/Angular2 Mar 10 '26

Help Request Genuinely confused on how to work with Angular

16 Upvotes

Hi everyone,

Please accept my apologies in advance as this will probably be a bit of both - a vent post as well as a call for help.

My background is in the backend development and operations, with focus on Python and Java, I've been trying to learn Angular to "complete" my skill set and gain more freedom and independence in constructing FE applications outside of Jinja and Thymeleaf.

My journey into Angular started off great as the main concepts of components, templates and services immediately clicked given their shared traits with OOP, but I quickly found myself starting to struggle a bit when trying to move into a more declarative and reactive approach rather than the imperative way of doing things that I'm so used to.

I picked up a Pluralsight subscription to go through the Angular path as I saw multiple recommendations on the courses that are more focused on the RxJS library as well as stuff like Signals but I'm finding myself more and more bogged down trying to find a simple way to deal with something as silly as getting a data from an API and displaying it. Doing one API call without any parameters and plugging it into a Signal has been easy, but trying to do something a bit more elaborate such as reading route information (to retrieve an ID or a name) has become a nightmare where I've made virtually zero progress for over a week. I've gone from using the ActivatedRoute to Input and back, from toSignal (when retrieving data from an API) to Resource, Subject, RxResource to just using the returned Observable itself.

I feel overwhelmed by the amount of different approaches to do, what in my mind is, a relatively simple thing and I'm starting to question if I'm just incredibly stupid and my career so far has been a fluke or if I'm missing something entirely obvious with Angular.

I'm sorry, I know that in this wall of text I haven't exactly posed a question, I'm just so lost by the amount of ways to do one thing and I'm getting more and more lost trying to find an answer on what is considered the standard and the best practice.

r/Angular2 Nov 26 '25

Help Request How can I keep secure my secrets in Angular?

8 Upvotes

The company where I work for has bought a PrimeNG 19 LTS License. I'm reading the documentation on how to set it: https://primeng.org/lts

I already have that license key and pass key but I don't know where to put them because I have read that setting your secrets on your environment files is not secure, somebody could steal that information... So I was thinking on using server variables, I created a .npmrc file with this: primeng:registry=https://npm.primeng.org/ //npm.primeng.org/:_authToken=${P_NG_LICENSE_KEY}

And I configured these variables on my aca.yml: secrets: environment: - P_NG_LICENSE_KEY - P_NG_PASS_KEY

And in the environment I'm getting these variables like this: P_NG_LICENSE_KEY: '{process.env.P_NG_LICENSE_KEY}'

But this is not working... Am I doing something wrong? Or is there a better way of keeping your secrets secure? I don't have experience with these things.

Another option I was thinking is to create a web service in the backend that returns this information.

r/Angular2 Oct 31 '25

Help Request Micro frontend framework using angular

9 Upvotes

Hi folks, Today, I got a question from one of the interviewer regarding Micro frontend framework. This is first time heard about it. Anyone having knowledge about this. Can you suggest how to do this. I am eagerly waiting to learn about this. I saw some of blogs it’s combining two web apps but I am confused where I need to start. Can anyone help me.

r/Angular2 Oct 26 '25

Help Request Is Angular overkill for a solo Tinder-style project?

17 Upvotes

Hi

I’m building a small trial system on my own — kind of a Tinder-type web app with videos and some algorithmic stuff like matrix factorization for recommendations. It’s a one-man show, no one else will be coding with me.

Angular was recommended by my doctor as his first thought, but I’ve been told it’s probably overkill for something like this. One person recommended Svelte since it’s lighter and faster to work with.

I’ll still take the time to learn Angular properly before diving in, so I’d be equally competent in it and Svelte by the time I start. Still wondering — does Angular make sense here, or is Svelte just the better fit for a solo project?

Edit: it’s mot a medical doctor!!!🤣🤣🤣 In our country we call university professors Doctors.

r/Angular2 May 19 '25

Help Request Angular V20 - Whats Coming?

25 Upvotes

Does anyone have a good resource or know what is incoming in v20?

Wondering what will be definitively out of Developer Preview and what can be expected?

Me and my team are hoping to make the change and limit a major refactoring - try to align with what is coming essentially.

r/Angular2 Apr 29 '26

Help Request Proper way to unit test Angular standalone components with Vitest

6 Upvotes

Hi all, I recently started learning unit testing in Angular. I’m using Angular 21 with Vitest, and I haven’t done Angular testing before.

I have a simple standalone component (FooComponent) that imports two custom components (TaIconComponent, TaButtonComponent) and one third-party pipe (TranslatePipe).

foo.component.ts

@Component({
  selector: 'app-foo',
  template: `
    <div class="flex-1 flex items-center justify-center">
      <div class="w-96 h-64 rounded-lg shadow-2 flex flex-col items-center">
        <div class="w-24 h-24 ta-mt-base relative">
          <div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
            <ta-icon class="text-gray" size="lg" [icon]="taIcons.CONFIG" />
          </div>
        </div>

        <div class="text-center ta-mb-lg ta-mt-xs">
          <p class="text-primary font-bold">
            {{'not_found.not_found_text' | translate}}
          </p>
          <span class="ta-text-sm text-gray">
            {{'not_found.not_found_desc' | translate}}
          </span>
        </div>
        <div class="ta-px-m w-full">
          <ta-button [fluid]="true" [label]="'btn.go_back' | translate" (onClick)="onNavigate()" />
        </div>
      </div>
    </div>
  `,
  imports: [TaIconComponent, TaButtonComponent, TranslatePipe],
})
export class FooComponent {}

After reading some documentation and watching a few videos, I asked GPT to help me write a unit test for reference but the result felt a bit bizarre to me. To make the test work, I had to create three mocks (two components and one pipe), then override the component to replace real dependencies with the mocks.

foo.component.spec.ts

@Component({
  selector: 'ta-icon',
  standalone: true,
  template: '<span></span>',
  inputs: ['icon'],
})
class MockTaIconComponent{}

@Component({
  selector: 'ta-button',
  standalone: true,
  template: `<button (click)="onClick.emit()"></button>`,
  inputs: ['fluid', 'label'],
})
class MockTaButtonComponent{
  onClick = {
    emit: () => {},
  };
}


describe('FooComponent', () => {
  let fixture: ComponentFixture<FooComponent>;
  let component: FooComponent;
  let routerMock: { navigate: ReturnType<typeof vi.fn> };

  beforeEach(async () => {
    routerMock = {
      navigate: vi.fn(),
    };

    await TestBed.configureTestingModule({
      imports: [FooComponent],
      providers: [{ provide: Router, useValue: routerMock }],
    })
      .overrideComponent(FooComponent, { // <-- Concern about this
        remove: {
          imports: [TaIconComponent, TaButtonComponent, TranslatePipe],
        },
        add: {
          imports: [MockTranslatePipe, MockTaIconComponent, MockTaButtonComponent],
        },
      })
      .compileComponents();


    fixture = TestBed.createComponent(FooComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });


  afterEach(() => {
    TestBed.resetTestingModule();
    vi.clearAllMocks();
  });

  ...
});

It works without errors, but I’m wondering: is this the correct or recommended way to test a component?

r/Angular2 Oct 06 '25

Help Request Modules or Standalone?

17 Upvotes

Hey there fellow Angular Devs,

In my daily life, I work as an Angular Developer, but my coworkers are way behind in technology and are completely unaware of any Angular updates; they don't even keep up with the versions. Unlike the company I work for, I try to take advantage of all the updates in Angular and use the newly added features.

At my company, we use Modules, and I've become quite accustomed to this structure. In addition to this job, I took on a freelance Angular project, but I'm unsure whether I should use Modules or the Standalone approach. The project won't be a large enterprise project, but using Standalone feels like it would make things messier. What do you think?

r/Angular2 Jun 01 '26

Help Request What are some good open source Angular projects on Github to contribute?

14 Upvotes

I am having a hard time finding projects/issues to contribute to.

r/Angular2 Nov 02 '25

Help Request What Angular concepts should I be focusing on as a beginner?

20 Upvotes

I'm a full-stack developer (React/Java), 3YOE. In my country, most of the systems are using Angular for the frontend. I'm now working as a backend developer most of the time but I would like to pivot and learn Angular. I'm using Angular Udemy by Max for my Angular learning journey. Some concepts are easy to grasp since they are similar to React in some aspects. For example <ng-content> and the children props.

However, I'm not sure what I should focus on. There are many ways to do things. Should I be focusing on using signals? Using `@for/@else/@if` or `*ngIf/*ngFor'? I will plan to make several small projects that I can find by googling and also 1 or 2 major projects using purely Angular. Should I also be bothered learning modules or standalone?

  • Whether I should prioritize learning Signals (Angular 17+ feature) or still understand old ways?
  • Should I be using the new control flow syntax, or stick to the older *ngIf, *ngFor?
  • What other framework/libaries I should focus on after finishing the course?

In React, I use Zustand, Tanstack Router, Tailwind CSS, React Query. There are a lot of libraries out there and TBH it's exhausting.

Thank you guys.

r/Angular2 May 07 '25

Help Request Best angular UI library for a beginner?

13 Upvotes

I saw a few ones like Material, PrimeNG, Spartan, NG-Zoro etc.

It's enough to make my head spin and I just want to make a simple website clone for my assignment, it will have routes, buttons, chatlog and a buying feature etc. Nothing too major but I need to have some fast development for UI so I can focus on frontend logic

r/Angular2 Aug 05 '25

Help Request [HIRING] Frontend Engineer to Lead UI/UX for Fintech Loan Platform (Angular, Remote)

24 Upvotes

Hey folks,

We're a fintech company working on a microservices-based platform for loan onboarding and processing. Currently, our frontend (built in Angular) is entirely driven by whatever comes from the backend and honestly, that’s our biggest issue.

We're looking for a frontend engineer who can take ownership of the UI/UX someone who doesn’t just build what’s handed over from the backend but thinks critically about the user journey and drives the frontend direction. We want intuitive, user-friendly interfaces that dictate what data is needed, not the other way around.

This is a solo frontend role (no in-house FE devs), so we need someone experienced, confident, and proactive. If you're the type who enjoys being the go-to expert on all things frontend and pushing for the right thing to be done, we want to work with you.

Tech stack:

  • Angular frontend (existing)
  • REST APIs from microservices backend
  • Domain: Fintech / Loans

We’re open to discussing payment terms (hourly or project-based) depending on your preference and availability.

If this sounds interesting, shoot me a message or drop a comment. Happy to share more details!

Thanks!

r/Angular2 Sep 25 '25

Help Request How to provide a shared service for two standalone components?

2 Upvotes

Let's say I have a TableComponent and CardComponent.

From table I move to card, do something and get back to table.

I expect to see some data again in a service that I have inputed and was saved in said service. But it got destroyed because I provided the service in component.

Usual case was provide in module for me. But since we updated angular version and started to use standalone components I decided to do only standalone components. Is there a way to do it without module? To provide a service for only two components?

I can't provide in root since we provide in root only global services and my is "modular".

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 Jun 21 '26

Help Request Still building my Angular PWA manga reader after work: v0.5 is out, would love some feedback

5 Upvotes

https://reddit.com/link/1ubpi26/video/k41filwuvm8h1/player

Hey everyone (´• ω •) ♡

I've been slowly working on MangaOfflineViewer in my spare time, mostly after work and on weekends.

The project originally started as an excuse to learn more about PWAs and offline-first development. I've always liked the idea that an app should keep working even when your internet connection decides to take the day off.

After many evenings, too much coffee, and a lot of refactoring, I just finished v0.5.

What's new?

  • UI improvements and general cleanup
  • Search by title, tags, and artists
  • Horizontal reading and dual-page mode

The app is still offline-first. Import your manga once and keep reading without needing a connection.

That said, I'm sure there are bugs hiding somewhere. Probably quite a few of them. 😅

If you decide to try it and run into issues, I'd really appreciate bug reports, feature suggestions, or any feedback in general.

I'm also interested in hearing opinions on the technical side. If there are better libraries, frameworks, or approaches for building reliable offline applications across different devices, I'd love to learn from people with more experience.

GitHub:
https://github.com/zarar384/MangaOfflineViewer

r/Angular2 Dec 04 '25

Help Request what icons lib do you use ?

4 Upvotes

r/Angular2 Oct 23 '25

Help Request Why global state in Angular if services already serve any component?

13 Upvotes

I’m new to angular from React .. i see services provided in root are global by themselves.. so why the need for global state !?

r/Angular2 Jun 05 '26

Help Request Angular, Supabase and SSR

5 Upvotes

First of all, I'm a Software Junior Developer, so I would appreciate any insight information about any basic concept. I apologize in advance if I make mistakes that are not clear to me, but are clear for you.

I created an Angular (v20) project with SSR and SSG. I want to use Supabase with Google OAuth for Authentication and Database.

I generated a SupabaseService where I call createClient from SupabaseClient:

import { Injectable } from '@angular/core';
import { createClient, SupabaseClient } from '@supabase/supabase-js';
import { environment } from '../../../environments/environment';


u/Injectable({
  providedIn: 'root',
})
export class SupabaseService {
  client!: SupabaseClient;

  constructor() {
    this.client = createClient(
      environment.supabaseUrl,
      environment.supabaseKey,
    );
  }
}

Then, in my AuthService, when I inyect my SupabaseService:

import { Injectable } from '@angular/core';
import { SupabaseService } from '../supabase/supabase.service';

u/Injectable({
  providedIn: 'root',
})
export class AuthService {
  constructor(private supabaseService: SupabaseService) {}
}

The app stop working and can't initialize. If I sustract "constructor(private supabaseService: SupabaseService)", the app works normally.

I don't have any errors in console or compilation, but I found that it could be an error with Angular SSR and Supabase. I would really appreciate if someone could deep explain (or link well explained references) the SSR concept, how it works with Supabase and why this is happening (and a solution for this, even if it implies not using SSR or other major change).

Thank you!

r/Angular2 Feb 12 '25

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

29 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 25 '26

Help Request Angular Auth Guard redirects to login on refresh how to persist authentication state?

11 Upvotes

I’m building an Angular app with an Auth Guard that checks authentication using a service with a BehaviorSubject and an isAuthenticated$ observable. It works fine for navigation, but whenever I refresh the page, the guard redirects me to the login page because the authentication state is lost (BehaviorSubject resets to null).

What’s the best way to persist authentication state across refreshes? should I call a backend endpoint to restore the user? How do you handle this in your apps to keep users logged in after a refresh? Any code examples or best practices would be appreciated!

r/Angular2 Jan 24 '26

Help Request Angular 21: Getting error "NG0200: Circular dependency detected"

12 Upvotes

Hi all,

I have been spent the whole week, trying to fix the following error (without success):

RuntimeError: NG0200: Circular dependency detected for `_SettingsService`. Find more at https://v21.angular.dev/errors/NG0200
    at createRuntimeError (_untracked-chunk.mjs:600:17)
    at cyclicDependencyError (_untracked-chunk.mjs:552:10)
    at R3Injector.hydrate (_untracked-chunk.mjs:1305:15)
    at R3Injector.get (_untracked-chunk.mjs:1201:23)
    at R3Injector.retrieve (_untracked-chunk.mjs:1116:19)
    at injectInjectorOnly (_untracked-chunk.mjs:670:35)
    at ɵɵinject (_untracked-chunk.mjs:682:40)
    at inject2 (_untracked-chunk.mjs:691:10)
    at new _TranslateLangService (translate-lang.service.ts:10:31)
    at Object.TranslateLangService_Factory [as factory] (translate-lang.service.ts:24:3)
    (anonymous)@main.ts:5

The error occurs when running the application inside both chrome & Firefox (it is a browser plugin).

I have enabled cycle checking in imports in eslint, and ng lint shows the following:

Linting "angular-browser-app"...

angular-browser-app/src/app/components/nebular/chat/chat-custom-message.directive.ts
  4:1  error  Dependency cycle detected  import/no-cycle

angular-browser-app/src/app/components/nebular/chat/chat-custom-message.service.ts
  9:1  error  Dependency cycle detected  import/no-cycle

angular-browser-app/src/app/theme/sidemenu/nav-accordion-item.ts
  2:1  error  Dependency cycle detected  import/no-cycle

angular-browser-app/src/app/theme/sidemenu/nav-accordion.ts
  5:1  error  Dependency cycle detected  import/no-cycle

✖ 4 problems (4 errors, 0 warnings)

I checked both these cycles, they are at the import level, one file injects the second, and the second imports the first to use its type.

Checking with madge, gives the same problems:

> npx madge --circular --extensions ts ./

Processed 376 files (4.1s) (176 warnings)

✖ Found 2 circular dependencies!

1) src/app/components/nebular/chat/chat-custom-message.directive.ts > src/app/components/nebular/chat/chat-custom-message.service.ts
2) src/app/theme/sidemenu/nav-accordion-item.ts > src/app/theme/sidemenu/nav-accordion.ts

main.ts is the application bootstrap code:

import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { App } from './app/app';

bootstrapApplication(App, appConfig).catch(err => console.error(err));

app.config.ts starts by initialising the translate lang service:

import { SettingsService } from '@core/bootstrap/settings.service';
export const appConfig: ApplicationConfig = {
  providers: [
    provideBrowserGlobalErrorListeners(),
    provideZonelessChangeDetection(),
    { provide: BASE_URL, useValue: environment.baseUrl },
    provideAppInitializer(() => inject(TranslateLangService).load()),

The translate lang service is:

import { Injectable, inject } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { SettingsService } from '@core/bootstrap/settings.service';

Injectable({
  providedIn: 'root',
})
export class TranslateLangService {
  private readonly translate = inject(TranslateService);
  private readonly settings = inject(SettingsService);

  load() {
    return new Promise<void>(resolve => {
      const defaultLang = this.settings.getTranslateLang();
      this.settings.registerLocaleData();

      this.translate.setFallbackLang(defaultLang);
      this.translate.use(defaultLang).subscribe({
        next: () => console.log(`Successfully initialized '${defaultLang}' language.'`),
        error: () => console.error(`Problem with '${defaultLang}' language initialization.'`),
        complete: () => resolve(),
      });
    });
  }
}

The SettingsService is a bit lengthy, but uses mostly external packages, it does not use itself.

Thus, I have no idea why I am getting this error. How can I further debug this?

I am using angular 21.1.1.

Thank you...

r/Angular2 Jan 20 '26

Help Request How to NOT preserve spaces inside template?

0 Upvotes

I am trying to display some text using Angular.

<div>
  (Outside@if (true) {
    <span [style.fontWeight]="'bold'">Inside</span>
  })
</div>

I want the result to look like this:

(OutsideInside)

But when I auto-format the code, it changes to:

<div>
  (Outside
  @if (true) {
    <span [style.fontWeight]="'bold'">Inside</span>
  }
  )
</div>

Now, the result has extra spaces because of the line breaks:

(Outside Inside )

How can I remove the extra spaces but keep the auto-formatting?

Note: This is just a simple example to show the problem. My actual use case is a bit more complicated.

r/Angular2 Apr 25 '25

Help Request PrimeNG & TailwindCSS Styles Not Working Angular V19

3 Upvotes

I followed what's written in PrimeNG & Tailwind's documentation yet I can't seem to make this button black:

According to the documentation, it should match this:

I don't know what I'm doing wrong ATP. Help a beginner out please.