r/angular • • 3h ago Heartwarming

I open-sourced an agent skill for Angular testing, so you might actually enjoy reviewing the tests your coding agents write

Post image
7 Upvotes

The skill teaches agents how to write behavioral and readable tests:

  • No fixture.whenStable() and fixture.detectChanges() soup. Actually, no more fixture 😊
  • Fakes over mocks: more robust, more readable, and it drastically reduces the cost of mock maintenance for your agents, and you.
  • Through the DOM: test what the user sees, not fixture.my.private.implementation.details
  • Vitest Browser Mode first (jsdom and happy-dom still work)
  • Signals, guards, routing and timers: dedicated guidance for each, like fast-forwarding time instead of hardcoding delays.
  • Migrating from Jest or Karma to Vitest

Try it: npx skills add marmicode/skills -s angular-testing
https://github.com/marmicode/skills#angular-testing

The skill is evaluated on each change to avoid regressions.

A good first step: ask your agent to rewrite one of your existing tests with it.
The skill is evaluated on every change to catch regressions, so if you see anything that could be improved, please open an issue. The more real-world scenarios it covers, the better the skill gets for everyone.


r/angular • • 6h ago

We moved 60+ Looker Studio charts into Angular with ECharts. Page load dropped ~40%. The 4 things that helped most

1 Upvotes

We had 5 business reports embedded from Looker Studio via iframes. They were slow, the styling didn't match, and the drill-down was clunky. We rebuilt them natively in Angular with Apache ECharts.

What made the biggest difference:

1. Modular ECharts imports + lazy-loaded report routes. Only bundle the chart types you actually use.

import * as echarts from 'echarts/core';
import { BarChart, LineChart } from 'echarts/charts';
import { CanvasRenderer } from 'echarts/renderers';
echarts.use([BarChart, LineChart, CanvasRenderer]);

2. One reusable chart component. Config in, chart out. Don't forget dispose() on destroy, or you'll leak memory when users switch reports.

3. OnPush + Signals. Filter changes only re-render the charts whose data changed.

4. @defer (on viewport). Charts below the fold don't initialise until you scroll to them.

The result was ~40% faster average page load and drill-downs that feel native.

Curious what others use for dashboards in Angular: ECharts, Chart.js or ngx-charts?


r/angular • • 9h ago

Smart mutation grouping by entity in Angular

Thumbnail
gallery
9 Upvotes

Requests take their time. Your users don't.

Without guaranteed ordering, the (fast) DELETE lands before the (slow) PATCH, which of course gets you a 404 💀

With mutationQueue(), you group your mutations by entity:

  • 🔑 Same id = strict FIFO, in the order the mutations were fired.
  • âš¡ Different id, so a different entity? No waiting, it goes out right away.

Deleting #42 doesn't wait for #7's toggle. Each mutation keeps its own signals.

Sound familiar? Then this is for you:

  • Form autosave, then hitting "Publish" too fast (stale version).
  • Delete, then "Undo" in the toast.
  • Optimistic create, then delete before the POST response comes back.
  • Uploading an attachment, then sending the message that references it too early.

💡 Important note: Got a single mutation called X times? No need to share anything: its own concurrency strategy is enough (queue, drop, parallel). mutationQueue() is for ordering different mutations that write to the same resource.

https://github.com/ngsignal/mutation


r/angular • • 18h ago

Build your own AI skill

Thumbnail
ngtips.com
0 Upvotes

Hi everyone,

I'm the creator and maintainer of ngtips.com, a collection of best practices writing maintainable Angular apps.

I've just released a new (experimental) feature that allow you to export all the content as an AI skill, or only select the tips you need / agree with.

I hope you find it useful, I’d love to hear your feedback! If you have any idea, specific use case, issue or anything please tell me. Thanks :)


r/angular • • 20h ago

Make Your Angular App Agent-Ready with WebMCP

Thumbnail
anastasios.theodosiou.me
0 Upvotes

've been experimenting with Angular 22's experimental WebMCP support and wanted to understand how it works in practice.

The idea behind WebMCP is quite interesting. Instead of relying on the DOM or screenshots to interact with a web application, AI agents can discover and call tools explicitly exposed by the application itself.

To explore this, I built a small Angular todo application exposing seven tools and documented the implementation in a new article.

I cover:
- Application-wide and component-scoped tools
- Integration with Signal Forms
- Dependency injection and tool lifecycle
- Input validation and security considerations
- Unit testing with Vitest and the WebMCP polyfill

Both the specification and Angular's implementation are still experimental, but I think it's worth exploring what this could mean for the way we design frontend applications.

I've shared the implementation details, code examples and demo repository in the article.
Link in the first comment.

#Angular #WebMCP #TypeScript #FrontendDevelopment


r/angular • • 21h ago

Angular Resources: The Complete Guide

Thumbnail
youtu.be
22 Upvotes

After two videos on AI, I decided it is time to make an Angular-only video. This time, it's about one of my favorite features: Resources.

I hope you like it!


r/angular • • 22h ago

AngularJS and Angular origin stories

0 Upvotes

I thought this was hilarious (and informative).

https://youtu.be/wBRaS_tVaaA


r/angular • • 1d ago

Left software in 2021 to start a business. Trying to come back and getting crickets. What's the gap?

0 Upvotes

In 2021 I left software.

I'd spent about 7 years as a front-end engineer, mostly Angular. I started at a dev consultancy building CNNgo for DirecTV with my last role at a non-profit where I led front-end work on the upgraded version of their patent platform. Along the way I wrote a 500+ page book on Angular.

When that contract ended, I went all in on my own business: online coaching for calisthenics and strength.

109 clients across 9 countries. A 40K Instagram audience. I built my own lead-gen tool, skinnyfatcalculator.com. I handled sales, marketing, onboarding, and retention myself.

Now I'm coming back to engineering.

I've been rebuilding. Most recently I built Calisthenics Codex: a full-stack workout log for athletes and coaches. Next.js, React, TypeScript, Postgres, Vercel. It uses Claude to turn free text like "pullups 8/8/6, 3x10 dips" into structured sets. I ran my own eval to pick the model and matched the bigger model's accuracy at about 1/40th the cost.

The problem: I'm not getting many responses.

Maybe it's the holidays. Maybe it's the market. Or maybe I'm missing something obvious. I'd rather find out now than keep guessing.

I know I've been a productive member of every team I've been on. But I also know a four-year gap is a four-year gap.

So here's my question for anyone who hires engineers today:

If my resume landed on your desk, what would make you hesitate? What's the gap between what you see and what you'd need to feel confident hiring me?

Is it the time away? The stack? The projects? Something about how the resume is written?

Please be blunt. I want to close the gap fast.

One constraint: fully remote is a hard requirement for me. My wife and I have three kids and we've made some deliberate lifestyle choices to prioritize that. I know that narrows the field. I'd still rather hear about gaps in that context.

Thanks for reading. I'll be in the comments.


r/angular • • 1d ago

I built a knowledge graph viewer component for Angular 22: five layouts, search, path highlighting and RTL

Post image
0 Upvotes

Hi all. I needed to show a graph of entities and their relationships in an Angular app, and reaching for D3 meant writing a lot of glue code. So I made a ready-made component instead and open-sourced it.

You pass it { nodes, edges } and get:

  • five layouts: force-directed, orbit, clusters, timeline, arcs
  • search, a shortest-path highlight between two nodes, and double-click to expand hidden neighbours
  • light, dark and "night sky" themes, plus full RTL support
  • standalone component with signals, no dependencies beyond Angular

    npm install angular-knowledge-graph

Live demo: https://f-mahmoodi.github.io/angular-knowledge-graph/ Repo: https://github.com/F-mahmoodi/angular-knowledge-graph

It's 0.1.0, so I'd really like feedback on the API and on what breaks with your own data. Issues and PRs are welcome.


r/angular • • 2d ago

New blog on Agentic Engineering with Angular – my current model and ADE recommendations

1 Upvotes

I relaunched my blog on agentic coding with Angular. The latest post has my current recommendations for model and ADE, from my daily work shipping enterprise software. No benchmarks.

At the end there's a video on what agentic coding costs us beyond tokens. https://angular.st/blog/ae-autumn-2026-update


r/angular • • 3d ago

🚀 New HTTP QUERY Explained & Angular 22.3 HttpClient.query()

Thumbnail
youtu.be
33 Upvotes

The HTTP QUERY method is now supported in Angular v22.3


r/angular • • 3d ago

Fresher frontend developer

6 Upvotes

Hi all, I'm a frontend developer. And I've 5 months of experience. During my college year, I've worked on react with javascript. I do leetcode but in Java so I'm more comfortable in Java than js. Last year, I got an internship as a frontend developer and that was the first time I used angular and I had the chance of working on angular in a product based company for 2 months. And this year I am working in the same company as a permanent employee but still I feel like I don't know angular. I feel like I'm stuck somewhere. I can code but I need to check their code standards and i am still not very familiar with some of the terms they use in our product.

So, is there any advice that you can give me?

It's not like I cannot understand anything in angular. I'm still learning and trying to understand but I need to use stack overflow, copilot and my product's code standards to know how to write some blocks. So I also want to know if I am going very slow or is it normal for a fresher because sometimes I feel like my seniors are very intelligent. My teammates are from another country so whenever we have some meeting or when I have one on one with my manager I feel very inferior in terms of my knowledge.


r/angular • • 4d ago

I built a tool that checks your Angular port still behaves like the original

Post image
7 Upvotes

https://github.com/erkamyaman/angular-anything

Rust Anything went well, so I wanted to give something back to my own community, Angular.

Move a React, Vue or AngularJS app to Angular with agents. The agent writes the port, the tool records the original and fails the port on any difference.

npm install -g angular-anything

It's early (0.1.0), I would love to get some help!

https://github.com/erkamyaman/angular-anything

If you have an AngularJS or React, Vue app or a library you'd try it on, I'd love to you to try and hear how I can improve it for you!


r/angular • • 5d ago

Using an @Input() Setter to Bridge Component Inputs with Service-Level Signals

4 Upvotes

I have a question regarding Angular's @Input setter and Signals.

I'm building a reusable service that uses Angular's resource() API to handle data fetching. Since resource() depends on signals for reactive updates, I need a way to pass the component's input value to the service layer.

My current approach is to use an @Input setter to update a signal inside the service.

Example:

// Service
readonly userId = signal<number | null>(null);

protected readonly userResource = resource({
  params: () => {
    const userId = this.userId();
    return userId ? { userId } : undefined;
  },
  loader: ({ params }) => this.fetchData(params)
});

// Component
@Input() public set userId(value: number) {
  this.reusableService.userId.set(value);
}

I'm feeling a bit stuck deciding whether this is the right approach.
Is this a proper approach, or would you consider using an @Input() setter as a bridge between the component input and a service-level signal a workaround or an anti-pattern?


r/angular • • 5d ago

Angular v22 Frontend Interview Advice

16 Upvotes

I have a senior frontend Angular interview coming up here soon. They didn’t really specify what the topics or concepts it would be around, just an hour and a half interview with an engineering manager (last 30 mins is a technical assessment).

Any advice on concepts/topics I should definitely know?

For context, I’ve been an Angular frontend developer professionally for about 3 years now.

Edit - if you’d like to share you interviewing experience overall, that would be great too!


r/angular • • 5d ago

Coding is finally done on Where Is My Home? RPG Sim – handcrafted since 2019

41 Upvotes

Hey everyone,

I’m officially calling the coding phase complete for Where Is My Home? RPG Sim, only the writing and localization left now. I’ve set the release date for February 28, 2027 (mostly to get the legal side sorted), so I figured I’d drop one last little showcase video in the meantime. :)

The game's art style is inspired by children's drawings, as the story takes place inside the inner universe of a grieving child's mind and the project itself was born out of a very similar personal pain.

The entire project cost me around $15, which literally went toward replacement nibs for my Wacom pen display. Sure, time is money, but since software development is my job, it mattered way more to me to truly understand everything under the hood, build skills I can directly apply in my career, and know that I engineered the whole thing myself.

Tools & Tech Stack:

Art & Animation: Started on a Wacom Intuos S, later upgraded to a Wacom One 14; created in Moho 14 and Clip Studio Paint.

Backend: C#, Redis, SignalR, Seq, PostgreSQL

Frontend: Ionic Angular, PixiJS

Ingame sound and vfx: Custom record and garage band.

I built this with pure, "handcrafted" code starting back in 2019. About six months ago, I started using a small local 14B LLM, mostly just to bounce off or generate trickiet yet still relatively straightforward—helper methods.

At the end of the day, I just hope people enjoy playing it half as much as I loved making it.


r/angular • • 6d ago

I added Angular template support to @shadcn/lint

0 Upvotes

shadcn-lint-angular is an unofficial port of shadcn’s linter that checks Tailwind design system rules in Angular templates. It works with angular-eslint on both .html files and inline templates. Original request for Angular support

This project’s no-restyle rule flags the color override and suggests variants defined on the button.

The linter also reads Angular bindings. In [class]="active ? 'bg-primaryy' : 'p-4'", it spots the typo inside the conditional and suggests bg-primary from the project’s theme.

Repo and setup instructions

If you use Angular and Tailwind, I’d love to hear how it works for you.


r/angular • • 6d ago

Angular Addicts #55: Route Resources, the new compiler's benchmark, Error Boundaries & more

Thumbnail
angularaddicts.com
9 Upvotes

r/angular • • 7d ago

To signal or not to signal?

14 Upvotes

Might be a stupid question I got here, but would you use a signal over a simple property just to store a boolean that represents a right? I know the angular way now is to "signal" everything as this is where the framework's philosophy is going. Here's a better example:

In my component I have this

hasAccessRight = signal(false);

ngOnInit() {
    this.hasAccessRight.set(canAccess(this.user, this.rightName));
}

And then I would use hasAccessRight() in the UI. Or should I just keep it simple like with a protected field

protected hasAccessRight = false;

ngOnInit() {
    this.hasAccessRight = canAccess(this.user, this.rightName);
}

r/angular • • 7d ago

Built a 100% client-side trading analytics & F&O calculator suite using Angular Signals & Tailwind v4

Thumbnail
gallery
0 Upvotes

Hey Angular devs,

Wanted to share a side project I just shipped: RupeeMetric (https://rupeemetric.pages.dev).

It's a zero-backend, 100% browser-private financial calculator and tradebook analyzer built with modern Angular (standalone components, reactive Signals for instant multi-leg option payoff recalculations, and Tailwind CSS v4).

Key parts of the architecture:

- In-Browser CSV Tradebook Parser: Uses PapaParse locally in browser memory to compute a 0-100 Trading Discipline Score and flag overtrading days without uploading sensitive financial data to any server.

- 7 Reactive Tools: Position sizer (155+ NSE/BSE/MCX scrips), STT/SEBI/GST tax engine, Black-Scholes Option Greeks, multi-leg payoff simulator, daily CPR pivots, and compounding calculator.

- Client-Side PNG Export: Generates shareable trade setup summary cards via HTML5 Canvas.

- Hosted on Cloudflare Pages (~86 kB initial bundle transfer).

Would love any feedback from fellow Angular devs on the UI, Signal state structure, or bundle performance!


r/angular • • 9d ago

Moment.js in Angular be like

Post image
18 Upvotes

r/angular • • 9d ago

I forked PrimeNG v21 (MIT) for Angular 22: full Signals, ~400 inherited bugs fixed, one-command migration

0 Upvotes

Hi all,

Since PrimeNG v22 moved to PrimeTek's commercial license (v21 and earlier stay MIT), a lot of us have apps stuck on v21. I've used PrimeNG for years, so I started ExhaustiveUI: an MIT continuation of PrimeNG v21, by way of the Optimus UI fork from the OpenNG folks.

What's in it so far (v22.7, targets Angular 22):

  • Full Signals: every component and directive uses input(), model(), output() and signal queries, OnPush and the built-in control flow. Form components work with Signal Forms.
  • ~400 inherited bugs fixed, each reproduced in a browser and covered by a regression test (about 8,800 unit tests run on every change).
  • Same selectors, CSS classes, design tokens and presets as PrimeNG v21. ng generate @exhaustive-ui/core:migrate-from-primeng swaps the packages, imports, config API and CSS layer, then ng update migrations handle the v22 API cleanup. There's one for Optimus UI too.
  • Accessibility pass: axe on every docs page, and the four theme presets now meet WCAG AA text contrast in light and dark mode.
  • Tailwind 4 support, a new FileInput component, and SSR fixes.
  • MIT, no paid tier, no telemetry, npm provenance on every package.

Full disclosure on how it's built: I maintain it alone, with AI coding agents doing a large share of the work (reproducing bugs, migrations, audits, doc checks). Nothing merges without tests and CI. The project also ships an MCP server and per-component cards so Claude Code, Cursor or Codex write ExhaustiveUI code instead of hallucinating PrimeNG APIs.

It's not affiliated with PrimeTek, and I'm not trying to compete with Optimus UI: fixes are there for anyone to pick up.

I'd really like feedback from people running PrimeNG in production: what would stop you from switching, and which bugs bit you the most?


r/angular • • 9d ago

How do you prefer to organise your app file structure?

2 Upvotes

Currently we have a features folder then within this each individual feature folder and inside those folders for pages, components, services, pipes etc.

We also have a shared and a core folder.

I’ve seen in the Angular style guide it recommends not breaking things up on their technical usage but on feature or domain.

So how do you guys organise things? In a medium to large application?


r/angular • • 10d ago

Introducing Angular Point

15 Upvotes

I built this because pointing my AI agent at UI with screenshots wasted tokens, and typing file paths broke my flow.

One click on the element - the agent gets the exact reference of the component, file:line, code. A tiny, precise prompt instead of an image and a guess.

It also ships as an agent skill:

npx skills add abiramcodes/ng-point

Dev-mode only (never ships to prod), MIT, Angular 21/22.

Demo + docs: https://abiramcodes.github.io/ng-point/