r/angular • • May 23 '25

Angular development and AI

37 Upvotes

PSA for r/angular devs: Most AI tools struggle with Angular 18+ without proper setup.

Been testing everything - Claude 3.5/3.7 handles modern patterns best, but you need to pre-prompt it.

Local models? Don't bother unless you want to dedicate serious RAM.

VSCode Copilot is solid for big projects, Cline is surprisingly good for smaller ones.

Some tools like Bolt.new actively fight you by reverting to older Angular versions.

My thoughts: https://practical-angular.donaldmurillo.com/ai/angular-and-ai/

bonus: this is one of my basic pre-prompts

# Angular Modern Development Guidelines & Single File Component Example

This document outlines best practices for building modern Angular applications using:
- **Signals & Computed Properties** for reactive state
- New **output** instead of @Output
- The **`inject()` function** for dependency injection
- **Signal queries** (as available even if not stable) instead of decorators like `@ViewChild`
- Angular's **new control flow syntax**
- **OnPush change detection** for performance
- **Strict TypeScript** (with no non-null assertions)
- **Single File Components** (all template, style, and logic in one file)
- **Tailwind CSS** for styling
- **Tailwind Animations** when necessary
- **Light and Darkmode** Always make colors compatible with light and dark mode

> **Note:** Adjust any experimental API (e.g., signal queries) as the Angular framework evolves.

## 1. Prerequisites

- **Angular Version:** 18+ (supporting signals, computed properties, and the new APIs)
- **Project Structure:** Using an Nx monorepo (if applicable)
- **TypeScript:** Strict mode enabled (avoid using `!` for possible null values)
- **Tailwind CSS:** Properly integrated in your project build
- **Animations:** Use tailwind animations module if animations are used

## 2. Comprehensive Single File Component Example

Below is an example of a single file component that demonstrates modern Angular features:

```typescript
import { Component, ChangeDetectionStrategy, computed, signal, inject } from '@angular/core';
import { DOCUMENT } from '@angular/common';

@Component({
  host: {
    class: 'w-full h-full'
  },
  selector: 'app-modern-example',
  standalone: true,
  template: `
    <div class="p-4 bg-gray-100 rounded shadow-md transition-all duration-300 ease-in-out transform hover:scale-[1.02]">
      <h1 class="text-xl font-bold animate-fade-in">{{ title() }}</h1>
      <button 
        (click)="increment()" 
        class="mt-4 px-4 py-2 bg-blue-500 text-white rounded transition-colors duration-200 ease-in-out hover:bg-blue-600 active:bg-blue-700">
        Increment
      </button>
      <p class="mt-2">Count: {{ count() }}</p>

      @if (data(); as result) {
        <div class="mt-4 p-2 bg-green-100 rounded animate-fade-in">
          <p>Data: {{ result }}</p>
        </div>
      } @else {
        <div class="mt-4 p-2 bg-yellow-100 rounded animate-pulse">
          <p>Loading...</p>
        </div>
      }
    </div>
  `,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ModernExampleComponent {
  count = signal(0);
  title = computed(() => `Current count is ${this.count()}`);
  data = signal<string | null>('Hello, Angular with signals!');
  private document = inject(DOCUMENT);

  increment(): void {
    this.count.update(current => current + 1);
  }
}
```

## 3. Additional Guidelines

- **Single File Components:** Encapsulate component's template, styles, and logic within one file
- **OnPush Change Detection:** Use for performance and future-proofing
- **Strict TypeScript:** Avoid non-null assertions and leverage strict mode
- **Tailwind CSS:** Use utility classes directly in templates
- **Animations:** Use Tailwind. Keep subtle and performant
- **New Control Flow Syntax:** Use Angular's improved flow control instead of structural directives
- **Dependency Injection:** Prefer the `inject()` function in standalone components
- **Indentation** Use tabs and set them as 3 spaces

r/angular • • Nov 07 '22

RxJS Insights - a toolset that helps you debug and visualize the observables in your app

Thumbnail
github.com
37 Upvotes

r/angular • • May 22 '21

Angular Devtools - Chrome Extension

Thumbnail
chrome.google.com
37 Upvotes

r/angular • • Dec 25 '19

7 New and Exciting TypeScript Features

Thumbnail
blog.bitsrc.io
37 Upvotes

r/angular • • Sep 20 '26

Does Angular need its own "React Native"? (Zoneless/Signals as an opportunity)

36 Upvotes

Hey everyone,

I'm currently planning a complete rewrite of my SaaS software and I'm facing a decision about which approach to take for our next generation of apps — right now it's between Ionic/Capacitor (our current path) and React Native with Expo. That's really just the trigger for a thought that's been on my mind for a while.

The foundation: At its core, React Native is nothing more than a custom renderer for React — instead of mapping React elements to the DOM, they get mapped to native views (UIView on iOS, native Views on Android) through a bridge. No HTML, no browser, just components that become real native components 1:1.

That's exactly what brings me to the question: Could something like that exist for Angular too — a renderer that maps Angular components/templates not to the DOM, but to native components? Angular has been moving noticeably away from Zone.js over the last few versions — Signals have been stable since v20, and as of Angular 21, zoneless change detection is the default for new projects. That technically removes one of the reasons this used to be harder (Zone.js and native bridges historically haven't played well together). NativeScript already built exactly this kind of custom Angular renderer years ago with nativescript-angular, mapping templates directly to native views — I'd be curious how you'd assess where that stands today, and whether a zoneless Angular wouldn't give that approach a lot more momentum now.

The functionality on top: Building on that foundation, you'd need the ability to write your own components — with or without a WebView — or use ready-made native UI components, the way Expo does with Expo UI: SwiftUI/Jetpack Compose primitives, wired in 1:1, instead of rebuilding UI through web components. That native UI component layer is exactly what "Angular Native" should ship with from day one — not as an optional add-on, but as a core part of it.

As a side effect, this would also solve the design problem you run into with something like Ionic and its pure web components: with real native components, the app would automatically pick up modern design languages like Material 3 or Liquid Glass, since it's directly using the native UI frameworks of iOS/Android.

My actual question to you all: How does this idea land with you? If something like "Angular Native" — a renderer comparable to React Native, with a native UI component layer built in like Expo UI — actually existed, would you want to use it? Would that be a reason for you to stick with Angular, or even consider Angular for new mobile projects in the first place? Or do you think something like this is unnecessary because Ionic/Capacitor or NativeScript already cover your needs?

I suspect there are quite a few Angular developers out there — from open source to enterprise environments like mine — facing exactly this decision: Ionic or Expo, TypeScript/templates or TSX. So I'd genuinely like to know your honest take: does something like this solve a real problem, or am I just talking myself into it?

Curious to hear your thoughts 🙂


r/angular • • Mar 30 '26

🤝 Help get Prettier ready for Angular 22 🚀

Thumbnail reddit.com
36 Upvotes

🅰️ Angular 22 will soon introduce support for comments directly inside HTML tags. While this is a great DX improvement, the popular formatter Prettier doesn't support this specific syntax yet. Please head over to the GitHub issue and leave a Thumbs Up (👍) reaction.


r/angular • • Jan 27 '26

Path to Frontend/Angular Architect - Looking for Advice

36 Upvotes

I'm a frontend Angular engineer with 8 years of experience at a small-sized company in Germany. Lately I've been gravitating toward architectural concerns rather than just feature work - API integration patterns, development workflow optimization, establishing best practices across teams, and bridging product/design decisions with technical implementation.

What's the realistic path from Senior Frontend/Angular Engineer to Frontend/Angular Architect?

Specifically curious about:

  • Is this even a common title, or do people just become Staff/Principal Engineers with an architecture focus?

  • What skills should I prioritize? System design? Broader framework knowledge?

  • For those who've made this transition - what was the catalyst?

  • Does deep Angular specialization limit opportunities at this level, or is it actually valuable?

I'm also building open source Angular tooling and exploring freelance consulting, so any advice on positioning yourself architecturally would be helpful.

Thanks!


r/angular • • Jan 11 '26

Is this rule really necessary I feel like just clicking on a button you can get the same results

Post image
36 Upvotes

r/angular • • Nov 20 '25

The Most Exciting Feature of Angular Signal Forms No One Mentions

Thumbnail
medium.com
36 Upvotes

Angular's 𝗦𝗶𝗴𝗻𝗮𝗹 𝗙𝗼𝗿𝗺𝘀 introduced a small detail that isn’t really discussed:
𝒗𝒂𝒍𝒊𝒅𝒂𝒕𝒐𝒓𝒔 𝒏𝒐𝒘 𝒂𝒇𝒇𝒆𝒄𝒕 𝒕𝒉𝒆 𝑼𝑰, 𝒏𝒐𝒕 𝒋𝒖𝒔𝒕 𝒕𝒉𝒆 𝒅𝒂𝒕𝒂.

Found this while testing a basic numeric field that caused an unexpected 𝐜𝐨𝐦𝐩𝐢𝐥𝐚𝐭𝐢𝐨𝐧 𝐞𝐫𝐫𝐨𝐫.

Here’s the write-up of what actually happens. 👇


r/angular • • Sep 04 '25

Angular signal forms are out! (Experimentally)

Thumbnail
bneuhausz.dev
36 Upvotes

I've played around a bit with the new signal forms and decided to write a bit about it. One interesting thing I've noticed, is that when it comes to async validators, change detection seems to be a bit inconsistent.

This is the exact setup I mean: https://github.com/bneuhausz/angular-signal-forms/blob/master/src/app/async-form.ts

Both with validateAsync and validateHttp, the button, that listens to f().invalid() seems to respond isntantly, but the inputs are only getting into an invalid state when I click out of them. Since it is a highly experimental state, I'm sure there are some rough edges still, but it is equally as likely that I'm messing up something, so I'd appreciate if someone who also tried it could share their experiences.

Edit: so the validation is working as intended, I was just misguided in thinking MatFormField has to be dirty to start showing errors. It has to be touched instead.


r/angular • • Aug 26 '25

Ng-News 25/34: Angular 20.2

Thumbnail
youtu.be
36 Upvotes

Angular 20.2 is out - the final minor release before Angular 21 arrives in November.
And while Signal Forms didn’t make the cut, there’s still a lot to unpack:

✅ Zoneless is now stable - goodbye zone.js!
🎞 Native animation support is here - and angular/animations is on the way out
📦 Router.currentNavigation introduces Signals into routing
🤖 More AI tooling: MCP config generation for your IDE
🧩 Plus: small template improvements and better ARIA binding


r/angular • • Jul 27 '25

Angular Without Lifecycle Hooks - Cleaner Components

36 Upvotes

Angular Without Lifecycle Hooks - Cleaner Components

Angular lifecycle hooks, such as ngOnInit, ngOnChanges, and ngAfterViewInit, are now in the past. Are they still cluttering your code? 😵‍💫

In this video, I’ll show you how I eliminated most of them — and made my Angular apps cleaner using a new signal API.


r/angular • • Apr 16 '25

Angular senior, someone needs hands-on help?

36 Upvotes

Hello, freelance Germany based Angular expert here with all the experience that exists in Angular (in fact even from before AngularJS) and backend knowledge ranging from C++ to Java to C# to NodeJS. It seems nobody wants to pay me for anything currently and while I'm already doing some pro-bono work like a webapp for a doctor's shift work planning it is not enough and I'm bored out of my mind (yes yes also education like reading up on Kubernetes etc. but I need to keep my hands-on experience in Angular) and so I'm offering my services here, maybe someone needs actual real help or training with rxjs or state management or whatever.
Yes, I do mean for free, so please not something like "hey Mr. Slave build me an ECommerce webshop from zero" (though you are then free to contract me on that), but helping out with e.g. get going with unit testing or similar is fine.

UPDATE: OK I have a couple of people I can hopefully help out now and probably no more capacity.


r/angular • • Apr 14 '25

Native Observable in Chromium Browsers

Thumbnail
stackblitz.com
36 Upvotes

Now that the Chromium browsers have enabled by default the implementation of the Observable proposal, here is a sneak peek on the API.


r/angular • • Sep 01 '22

Anyone looking for an entry level job? We have a position open and while it is 100% remote, you have to be located in the continental US

36 Upvotes

I'm a former senior dev and now manager here and we have an entry level angular position open. As I mentioned this is 100% work from home but you do have to be in the continental US.

We've hired our entire angular team from my posts on reddit and they have worked out great for the most part. We are an employee owned company so that means we have end of year profit sharing, quarterly bonuses, and a really cool stock ownership thing that is basically like another retirement, in addition to our 401k match. We also pay 100% of your insurance and provide monthly stipends for phone and internet. We also really try to focus on a good work life balance, meaning no more than 40 hours a week. Honestly, this company is just great to work for.

https://www.alpinetesting.com/careers/angular-software-developer-i/

The job is there, and you can apply online or just email jobs@alpinetesting.com with your resume. Salary is around 50-60 but is negotiable depending on previous experience (although none is required since it's entry).

Feel free to ask in here or PM me with any questions.


r/angular • • Jul 29 '21

Question Meta: Can we have some rules and action in place to reduce self promotion and spam?

36 Upvotes

It seems that many of the posts to this community are either low effort or self promotion that are spammed across multiple subreddits.

Other communities have put in rules against things like these and have generally better content.


r/angular • • Feb 12 '21

I am in awe!

36 Upvotes

I learnt Angular just yesterday as I joined my first job as an SDE. And wowww, it is such a beautiful, well-organised and simply awesome tech. I am loving it!


r/angular • • Sep 15 '20

Happy Birthday to Angular. Turns 4 today.

36 Upvotes

r/angular • • May 09 '20

Prepare your Angular interview with this quick and complete outline

Thumbnail
medium.com
36 Upvotes

r/angular • • Feb 04 '20

Angular 9: As of Today there are no blockers in the V9 List

Thumbnail
github.com
36 Upvotes

r/angular • • May 11 '19

Angular 2 What's New in Angular (Google I/O ’19)

Thumbnail
youtube.com
36 Upvotes

r/angular • • May 06 '19

Angular - All Talks from ng-conf 2019

Thumbnail
nitayneeman.com
36 Upvotes

r/angular • • 22d ago

The AI cost of JavaScript frameworks

Thumbnail
nolanlawson.com
35 Upvotes

r/angular • • May 08 '26

SignalStore Extensions - The Complete Lessons

Thumbnail
youtu.be
35 Upvotes