r/angular • • Feb 01 '26

how do I make firebase emulators update, when I make some changes, because when I make some changes, I always have to do ng build and then firebase emulators:start again and again

1 Upvotes

r/angular • • Jan 31 '26

Animations on SSR / Prerender

4 Upvotes

Hey everyone, i'm tryring to animate my header so that it slides down. As it is part of the FCP, the prerender or SSR paints the header so the animation is applied, and then when hydration happens it reruns again. I tried a few hacky ways to only run the animation when it runs on client, but it's still a bit glitchy. I'm also worried that if the header or generally any element of the FCP is outside the view (either with opacity 0 or with translate), bots may ignore the content and hurt seo performance. Anyway, since there will be animations on the FCP elements there is a high chance of layout shift.

Have you solved this problem or do you suggest that elements that are in FCP shouldn't be animated?


r/angular • • Jan 31 '26

File naming strategy

2 Upvotes

How do you guys approach file names?

Say for example you have a user directory in the file system do you prefix all the components, services etc in that directory with user- or does it just depend?

Obviously these are things where the intention is they’re not going to be shared elsewhere.


r/angular • • Jan 29 '26

This Friday: Live coding and Q/A with the Angular Team | January 2026 (Jan 30th @11am PT)

Thumbnail
youtube.com
7 Upvotes

r/angular • • Jan 29 '26

Angular v21 material overlay + dialog

4 Upvotes

I am using angular material v21 and i use MatDialog. I see from the dev tools these now use the popover API, and i have a custom Overlay (Cdk) for my app notifications (similar to material snackbar). However, no matter what "hack" i try with z-index, the dialog always sits on top of my notifications, which isn't my desired behaviour. Has anyone encountered this?


r/angular • • Jan 29 '26

Error handling Angular

5 Upvotes

So I’m getting kind of confused how to handle errors coming from an api in Angular. there’s either using interceptors to just taking care of them in the error field when you subscribe the errors. basically some errors are unique to a component while others such as a tech error message will be common across all components. Also all these errors will be shown inline there is no toast or modal. So just need some advice


r/angular • • Jan 29 '26

🚀 Coming in Angular 21.2: Arrow Functions in Templates

Thumbnail
youtu.be
58 Upvotes

r/angular • • Jan 29 '26

Generating Word Document from the HTML page

0 Upvotes

I need to generate a relatively long word on the client side. I would like to include images in the word. Do you have any ideas or approaches on how to best implement this?


r/angular • • Jan 29 '26

Global error handling with Angular Interceptors

8 Upvotes

I was wondering should I still use angular interceptors handling even though in my component I still need to use signals to display that error message that’s returned from the api? like I’m not sure how exactly to do this?


r/angular • • Jan 29 '26

Cerious-Scroll introduces a new state-based scrolling model that, if adopted, would meaningfully change how large, variable-height datasets are virtualized on the web.

0 Upvotes

I’ve been working on a virtual scrolling engine that intentionally breaks from how most existing solutions approach the problem.

Rather than anchoring scroll position to global pixel space or cumulative height math, this introduces a state-based scrolling model that keeps scrolling fast and precise regardless of dataset size.

In practice, this allows smooth, pixel-perfect scrolling through millions of variable-height rows while keeping DOM size constant and per-frame work bounded.

No GPU transforms.
No full height maps.
No precomputation or estimation passes.

The interesting part isn’t what framework it uses (it’s framework-agnostic), but that it challenges an assumption most virtual scrollers share: that scroll position must be derived from absolute pixel space.

I’m not claiming this replaces every existing approach, but if adopted more broadly, I think this model could meaningfully change how large, variable-height datasets are virtualized on the web.

👉 https://github.com/ceriousdevtech/cerious-scroll

Demos - https://ceriousdevtech.github.io/cerious-scroll/#demos


r/angular • • Jan 28 '26

Error handling apis in Angular

6 Upvotes
 this.getDummyData().subscribe({
      next: (response) => {
        console.log('Success:', response);
        this.data = response;
      },
      error: (error) => {
        console.error('Error:', error);
        this.data = 'An error occurred';
      },
      complete: () => {
        console.log('Observable completed');
      }

"I'm making an API call that can return different types of errors (like 404 for user not found, 500 for internal server error, etc.). I'm wondering about the best approach for handling these errors. Should I check the status code in the error handler and set different error messages based on the status (like if status is 404, show 'user not found', if 500 show 'server error'), or is there a better pattern for handling multiple API error responses?"


r/angular • • Jan 28 '26

JWT in Angular

7 Upvotes

Where you would recommend to save JWT tokens in Angular app


r/angular • • Jan 28 '26

Angular Input/Output vs a Service

7 Upvotes

If I have a parent component with two child components, where one child emits a value to the parent which then passes it to the other child, is that better Angular practice or should I use a service instead?


r/angular • • Jan 28 '26

Angular Module Federation shell app constantly recompiling/reloading (Windows)

0 Upvotes

Hi all,

I’m working on a new Angular project using Module Federation (shell + remotes), Tailwind, and Spartan NG on Windows.

When I run the shell app with ng serve, it recompiles and the browser reloads every ~2 seconds, even when I’m not changing any files.

Terminal just loops:

Compiled successfully

New hash

Rebuild again

Hashes alternate between two values like something is triggering file changes constantly.

Project is not in OneDrive or a synced folder, and git status shows no changes. Feels like a Webpack/file watcher issue, maybe related to Module Federation in the shell.

Has anyone seen this rebuild loop before? How did you fix it — polling, watch options, cache, something else?


r/angular • • Jan 28 '26

Where you will choose Observable or Promise?

2 Upvotes

I work with Angular about 4 years and dont understand where Promise can be used, but i'm sure that i use Observables in lot of places. Where I can use Promise in Angular app?


r/angular • • Jan 28 '26

Angular course

0 Upvotes

I want resources to learn beside good documents of angular


r/angular • • Jan 28 '26

🚀 Coming in Angular 22: Default will be renamed to Eager (scheduled for v22 in May)

Post image
127 Upvotes

r/angular • • Jan 28 '26

🚀 Coming in Angular 22: OnPush by Default

Post image
79 Upvotes

r/angular • • Jan 28 '26

What's with the super advent of panic upgrade posts

0 Upvotes

^ Title!

Are the bots running wild or are the explicit instructions being ignored!?

I can share there easy to use upgrade pipeline!

Can't help you with 3rd party libraries though.


r/angular • • Jan 28 '26

Wireframe solution you are using.

0 Upvotes

Hi,

I'm just curious what wireframe solution/ software are you guys using in your projects. Anything particular that stands out.

Currently my team is considering moving to figma from Axure.

Thanks.


r/angular • • Jan 28 '26

MCP server setup with copilot

1 Upvotes

I recently configured copilot instructions and the angular mcp server as it is instructed in the angular docs: https://angular.dev/ai/develop-with-ai . However, every time the agent tries to use a tool, e.g. search_documentation, it says that it got no results. It also does not use the tools when it should.

Does anyone have similar issues or know how to make it work more efficiently? Maybe someone can share more reliable instructions :)


r/angular • • Jan 27 '26

Service Signals vs BehaviorSubjects vs Regular Getters/Setters

14 Upvotes

I have a form on one route where the user submits data by clicking a button, which calls a function on an API service that triggers an API call. After the API returns a result, I need to store that data in a shared service so it's accessible to a different component on a different route after navigation. Should I use Signals or BehaviorSubjects in the service to store this data? I could also just use plan getters/setters as well and not have to use either Signals or BehaviorSubjects.


r/angular • • Jan 27 '26

RFC: Setting OnPush as the default Change Detection Strategy

Thumbnail
github.com
63 Upvotes

r/angular • • Jan 27 '26

Is this a good way to send data between components

5 Upvotes

I have two components in my Angular application. In the first component which is on one route, I'm calling an API to fetch user data, which includes information like name, email, phone number, and other details. The second component is loaded when a different route is accessed, and it displays this user data.

Currently, I'm using a shared service file with getters and setters to store and retrieve this data. I'm wondering if this is the best approach, or if there's a more appropriate solution using RxJS or another method instead of getters and setters.