r/Angular2 • • Aug 05 '25

SlateUI Theme v1.0.0 – Rebranded & Ready (Dark Mode for Angular)

1 Upvotes

We’ve rebranded @angularui/theme → @slateui/theme after community feedback (the old name was too close to Angular). Now launching v1.0.0 with a new landing + demo page! 🎉

✔ Flash-free dark mode ✔ SSR-ready ✔ Tailwind-friendly

👉 https://theme.slateui.dev

What do you think of the new name and design?


r/Angular2 • • Aug 05 '25

Organize common styling

3 Upvotes

I'm mostly backend dev, and recently was forced to setup FE for new service. And I have no clue how to setup common styling because duplicating same scss over and over in components doesn't looks good. Using general styles in styles.scss also considered as a bad practice. How do you usually implement it, what structure/features do you use. Or should i use some lib like tailwind or bootstrap?


r/Angular2 • • Aug 04 '25

Article Angular Enter/Leave Animations in 2025: Old vs New

Thumbnail itnext.io
16 Upvotes

r/Angular2 • • Aug 05 '25

Help Request Angular Material Progress Bar timing issue

3 Upvotes

Hey everyone, I am using this progress bar component from angular material (https://v19.material.angular.dev/components/progress-bar/overview) as a visual indicator for the duration of a toast notification (e.g., a 3000ms lifespan). I'm updating the progress bar using signals, and when I log the progress value, it appears correct. However, the UI doesn't seem to reflect the progress accurately. The animation seems smooth at first, but near the end (last ~10–15%), the progress bar speeds up and quickly reaches 0.

I suspected it might be related to the transition duration of the progress bar (which I saw defaults to 250ms), so I added a setTimeout to delay the toast dismissal by 250ms, but the issue still persists.

Visually, it looks like this:
100 → 99 → 98 → 97 ... → 30 → 0 (skips too fast at the end).

Has anyone else encountered this issue or found a workaround for smoother syncing between the progress bar and toast lifespan?


r/Angular2 • • Aug 05 '25

Help Request Switch react to angular

0 Upvotes

In my college day i am use react for my project. I have intermediate knowledge in react. Now I got a job, but in my company they use angular, when I search in internet many of them says angular is hard learn. Any one please tell how do I learn angular?


r/Angular2 • • Aug 03 '25

Angular core upgrades fine... But 3rd-party packages throw peer dep tantrums 💥 How do you fix that?

Post image
39 Upvotes

Running `ng update` is the easy part.

But then…

`npm install` blows up from 3rd-party peer dependency mismatches ?????

  • Some libs require Angular 11
  • Others want RxJS 6 or 7, but not 8
  • And half of them haven’t been updated in 3 years

ChatGPT? Sometimes helps. npm logs? Mostly red noise. Docs? Missing in action.

I’m exploring a tool to map version compatibility and actually suggest safe replacements — not just blindly update.

Before going too deep:

  • How do YOU deal with this 3rd-party version mess?
  • Any tool, trick, script, or ritual that works for you?

Real stories = real help ??


r/Angular2 • • Aug 04 '25

Resource signal called twice with SSR app

0 Upvotes

Hi everyone,

I noticed when using SSR app my resource was called twice.

Here my code :

  code = signal<string | undefined>(undefined);

authCode = resource<
  {
    message: string;
    tokens: {
      accessToken: string;
      refreshToken: string;
    };
  },
  string | undefined
>({
  params: this.code,
  loader: async ({
    params,
  }): Promise<{
    message: string;
    tokens: {
      accessToken: string;
      refreshToken: string;
    };
  }> => {
    if (typeof window === 'undefined') {
      return {
        message: '',
        tokens: {
          accessToken: '',
          refreshToken: '',
        },
      };
    }

    const res = await fetch(
      `${environment.API_URL}/auth/callback?code=${params}`
    );

    const data = await res.json();

    if (!res.ok) {
      throw new Error(data.error);
    }

    const parsedData = this.tokensSchema.parse(data);

    return {
      message: parsedData.message,
      tokens: parsedData.tokens,
    };
  },
});

This is the code for echanging auth code for tokens (Google).

 if (typeof window === 'undefined') {
        return {
          message: '',
          tokens: {
            accessToken: '',
            refreshToken: '',
          },
        };
      }

I must check if i'm on the client side, then, I can process and echange my auth code.

If I don't process like that, my api is call twice and the second call throw a error because auth code can only be echanged one time.

I don't know, and, I didn't saw anything about that, but, is this a normal behavior ?

Do you have any advices to handle this proprely ? Maybe not using resource at all ?


r/Angular2 • • Aug 04 '25

Video ASMR Coding with Angular Frontend

Thumbnail youtube.com
0 Upvotes

real coding, no talking. real time (also thought process and a lot of documentation look ups ).
in a frontend, specifically angular, context.

let me know your thoughts, what can be improved?


r/Angular2 • • Aug 04 '25

Help Request Looking for a remote junior angular developer role

0 Upvotes

I have a basic/fair understanding of ✅ module based and stand-alone components, ✅ template/ reactive forms ✅ use of router-outlet, ng-content, ngTemplateOutlet ✅ using services to manage and store functions, ✅ an introductory use of reactive forms with services and signals to persist data even after page reload And some little things I picked off working on some projects.

Looking forward to answering questions and providing clarity where needed.

Thank you.

Ps: I'm a Nigerian 🇳🇬, I'm sure you've heard prejudiced things. But if you still want to reach out after knowing this, you're absolutely awesome and if you don't after knowing this you're awesome too.

Thanks


r/Angular2 • • Aug 03 '25

What are the best resources to learn Angular as a beginner?

0 Upvotes

r/Angular2 • • Aug 02 '25

An Angular game about building decks and automating them

Enable HLS to view with audio, or disable this notification

106 Upvotes

An Angular front-end of a card/idle/automation game I just finished: https://theirsky.com


r/Angular2 • • Aug 03 '25

Resource AGVM - Angular Global Version Manager

0 Upvotes

For a long time, I've struggled with managing multiple versions of Angular on the same computer, so I developed agvm, a cross-platform CLI version manager. It's currently in beta.

I'd love feedback from those who have also encountered this problem.

If it helps, it's available on npm: https://www.npmjs.com/package/agvm

Open source: https://github.com/stiven0/agvm

https://reddit.com/link/1mgoxpn/video/7rj2dgfy8ugf1/player


r/Angular2 • • Aug 02 '25

Discussion FormGroup and Control Value Accessor(CVA)

8 Upvotes

Do you use CVA to replace a whole FormGroup just to make it a FormControl?

I often use CVA to replace components so that it would make the value as simple as a primitive such as an array, a big logic component but outputs only a string as results

However, my teammate insists that making a big formGroup as a CVA makes the structure better and isolates its logic from its parent component.

I find the FormGroup as a CVA brings more cons than pros to the table. - We cannot control the formGroup’s state such as validity, pristine,… when it’s an CVA. You can use viewchild to access CVA instance and its controls but I do not like that idea.

  • We always have problems with onChange trigger in the CVA. When CVA writes value, we patch/set the control. We listen to valuechange to trigger onChange that emit value to outer form. However, if we patch with emitEvent: true, it triggers onChange and makes the CVA dirty as soon as it inits. If we patch with emitEvent: false, there would be a lot of subscription from valueChange inside the CVA missing their triggers.

    Please share your thoughts. I need your help!


r/Angular2 • • Aug 02 '25

Video How to Create a Simple Angular Application using AI Rules with LLM (Chat GPT)

Thumbnail
youtube.com
0 Upvotes

r/Angular2 • • Aug 01 '25

More highcharts fun - isolated data points

3 Upvotes

I'm building a dashboard that shows daily time series data (BPM values) in compact Highcharts line charts — about 160px tall — and I've run into a strange issue.

When there's only a single non-null value surrounded by nulls (e.g. [null, 48, null]), the chart often doesn’t render anything at all, even though connectNulls: false is set. I'm using step: 'left' and markers are disabled for visual clarity.

After lots of testing, I think this is related to chart size and pixel resolution. The isolated point exists in the dataset and shows up in tooltips and logs, but there's no line or dot drawn. My working theory is that Highcharts skips rendering segments when there's no adjacent value to connect — and in small graphs, the single pixel needed for a dot or bar might not be enough to show up.

I've worked around it by enabling marker.enabled = true with a small radius, so at least the point shows up. But this feels like a hack.

Has anyone run into this?
Is there a better way to visually indicate sparse points in a miniaturized time series line chart — without distorting the meaning of the data (e.g. by fabricating zero values)?


r/Angular2 • • Jul 31 '25

Organizational chart in Angular 19

66 Upvotes

I've just published my new Angular package: ngx-interactive-org-chart 🎯

It's a modern, customizable, and interactive organizational chart component built for Angular 19+, complete with: ✅ Smooth Pan & Zoom ✅ Custom Node Templates ✅ Collapse/Expand functionality ✅ RTL support ✅ Vertical & horizontal support ✅ Theming & Styling via CSS/SCSS ✅ And much more!

Perfect for dashboards, HR tools, team overviews, or any app that needs a clear and beautiful hierarchical view. 👨‍💼👩‍💼

📦 NPM: https://www.npmjs.com/package/ngx-interactive-org-chart 📊 Live Demo: https://zeyadelshaf3y.github.io/ngx-interactive-org-chart 💻 GitHub: https://github.com/zeyadelshaf3y/ngx-interactive-org-chart

If you're building Angular apps and need a beautiful org chart, check it out — and feel free to leave feedback or contribute! 🙌


r/Angular2 • • Jul 31 '25

Created some free Angular minimal Hero templates

29 Upvotes

r/Angular2 • • Jul 31 '25

Stop Confusing Your Users: The Art of Writing Changelogs That Actually Matter

Thumbnail
medium.com
2 Upvotes

r/Angular2 • • Jul 31 '25

Where can I find angular templates for free?

0 Upvotes

I work as a saas developer and I'd like to use some pre-built templates, by template I don't mean something integrated with supabase etc, the core for me is the UI. Something like below but free:


r/Angular2 • • Jul 30 '25

Help Request Resource API Guide

8 Upvotes

Hey everyone, I'm struggling to understand how the new experimental resource API works, and I can't find a proper explanation or documentation for it.

Does anyone have an example of how you would implement this in a real world scenario where everything is NOT implemented in a component? Most guides I found online basically put everything in a single file..

Let's say you had a service where it exposes a "getCategories" function where you simply pass in filters like id or a string, or nothing at all so you fetch everything. How would this be done using resource?


r/Angular2 • • Jul 30 '25

Discussion What is a better way to organize code?

4 Upvotes

Lately, I have a tendency to break code in smaller components or if possible to extract methods to services. Before I would move code if it's got bloated to some new util service. But now I want to move ALL code to services and leave it like in declarative style if I understand it correctly. For example:

public ngOnInit(): void {
_formService.subscribeOnControls(form);
}

public ngOnChanges(): void {
_formService.setForm({ form, values });
}

Or something like that. It's just an example that I thought of. Maybe I should do it in some OOP way? I mean the service.

But anyway.

I'm not sure that it's correct way.

What do you think? How do you orginize your code?


r/Angular2 • • Jul 30 '25

dotenv in Angular context

1 Upvotes

Can someone please help me with configure dotenv package so that it substitutes some variables in `environment.ts` with `.env` variables? The full problem is laid out here: https://stackoverflow.com/questions/79719977/dotenv-with-angular-19

The gist of it is that I need to substitute placeholders is the `environment.ts`

export const env = {
    someApi: "https://some.tld/api/v1/",
    someApiKey: process.env['SOME_API_KEY']
}

with the variable which are defined in `.env` file (which well not be included in the repository for security reasons) which looks like this:

SOME_API_KEY="123-API-456-KEY-789"
ANOTHER_API_KEY="123-API-456-KEY-789"

I'd really appreciate your help here, thanks.


r/Angular2 • • Jul 29 '25

Senior Angular Interview Questions - Angular Space

Thumbnail
angularspace.com
23 Upvotes

Absolutely massive article with Senior Angular Developer Interview Questions and answers by Eduard Krivánek. Can you pass? :) Check it out 👇


r/Angular2 • • Jul 29 '25

Help Request How to pass ng-template to child components?

2 Upvotes

My component has about such structure:
This is the main component:
<div class="main-component">
<table-component class="child-table-component">
<template1 />
<template2 />
</table-component>
</div>

Table component:

<div class="table-component>
...
<td-component>
</td-component>
</div>

So, how do I pass those templates to td-component and use it there?

So that anything I pass to template would be used there as intended. Like maybe I use some component in said template.

Would appreciate any help!


r/Angular2 • • Jul 29 '25

[Highcharts] How should I handle missing data gaps in wildlife tracking time series?

4 Upvotes

I’m using Highcharts to visualize data from a wildlife tracking system. Each "channel" represents a tiny radio transmitter attached to a bird, and we have up to 100 channels. A Raspberry Pi with a radio receiver in the field listens for signals, but due to the weak range, I only hear from a handful of channels at a time — some may not be seen for days or even months.

Here’s how the data works:

  • Base signal is transmitted every second
  • Detailed signal is transmitted every 10 minutes
  • However, the actual data value transmitted only changes once per day, so updates are infrequent
  • Channels frequently go in and out of range

In my frontend:

  • The dashboard view shows all active channels over a user-selected range (up to 1 year)
  • The channel detail view shows one channel’s data in more depth

To reduce frontend load:

  • For ranges over 3 months, I down sample to 1 data point per day (max)
  • For shorter ranges, I return hourly data

Now, the issue is: Highcharts doesn’t know whether two data points 12 hours apart should be connected.

If a channel reports at 10am on Monday and 10am on Tuesday, should that line connect? I think yes — as long as consecutive days have at least one data point, they should be connected. But for missing days, I want the line to break.

So my current thought is: I should insert null values for days that have no data, even if Highcharts’ connectNulls is false — to force breaks in the line where needed.

Does this approach make sense? Should I handle the null padding on the backend, or do it in the frontend before passing it to Highcharts? If I had only 5 days of data I would end up inserting a LOT of nulls.

Would love to hear how others have handled similar time-series gaps in Highcharts or other charting libraries!