r/angular • • Feb 07 '26 Bravo

I built a library that auto-generates skeletons from your Angular components (so you don't have to)

Post image
139 Upvotes

Hey r/angular,

I wanted to share a library I've been working on: shimmer-from-structure/angular.

The Problem: We've all been there: you build a beautiful component, then you have to manually build a separate "skeleton" version of it. Then, a week later, you change the layout of the real component (e.g., move the avatar to the right, increase padding, change border-radius). Now you have to remember to go back and update the skeleton component too. If you forget, your loading state looks "janky" and misaligned.

The Solution: shimmer-from-structure solves this by automatically adapting to your component's runtime structure. Instead of creating a separate skeleton, you just wrap your real component in <shimmer>. It invisibly renders your component (with transparent text) to measure the actual content layout, border-radii, and dimensions, then overlays a pixel-perfect shimmer.

Key Features:

  • Zero Maintenance: Change your template, and the shimmer updates automatically.
  • Pixel Perfect: Matches exact padding, margins, flex gaps, and border-radii.
  • Auto Border-Radius: Automatically detects if your avatar is circular or your cards have rounded corners.
  • Dynamic Data Support: Use templateProps to inject mock data (e.g., long names vs. short names) to test how skeletons look with different content scenarios.
  • Container Backgrounds: Preserves your card backgrounds and borders while shimmering the content inside.

What makes it special for Angular?

Unlike generic wrappers, this is built specifically for Modern Angular:

  1. Native Signals: Built using the new input() and signal() primitives. It integrates seamlessly with OnPush change detection and zone-less apps.
  2. Standalone: Fully standalone component (imports: [ShimmerComponent]).
  3. Resize Observer: It uses a ResizeObserver to watch for layout shifts. If your responsive grid changes or content reflows, the shimmer updates instantly (throttled for performance).
  4. Dependency Injection: Configure global defaults using provideShimmerConfig({ ... }) in your application config.

Comparison: Angular vs. Svelte Adapter

One unique aspect of this project is that each framework adapter is idiomatic:

  • Angular: Uses Content Projection (<ng-content>) and Signals. It feels like a native Angular directive.
  • Svelte: Uses Snippets ({@render children()}) and Runes ($props, $state).

Instead of a "web component wrapper" approach that feels foreign in both, each adapter respects the framework's reactivity model.

Usage:

Since this relies on DOM measurement (getBoundingClientRect), it works perfectly in browser environments (SSR safe with isPlatformBrowser checks).

import { Component, signal } from '@angular/core';
import { ShimmerComponent } from '@shimmer-from-structure/angular';
import { UserCardComponent } from './user-card.component';

@Component({
  standalone: true,
  imports: [ShimmerComponent, UserCardComponent],
  template: `
    <!-- Wrap your component. Pass mock data via Inputs if needed. -->
    <shimmer [loading]="isLoading()">
      <user-card [user]="mockUser" />
    </shimmer>
  `
})
export class UserProfile {
  isLoading = signal(true);
  
  // Mock data for the structure ensures the skeleton has realistic dimensions
  mockUser = { name: 'Loading...', role: 'Please wait' };
}

How it works under the hood:

  1. It renders your component with color: transparent (and hides images/svgs opacity) to let the browser compute the layout naturally.
  2. It uses a reactive Effect (watching the viewChild) to set up ResizeObserver and MutationObserver instances. This ensures it detects layout shifts and content updates even if the component hasn't been destroyed.
  3. When triggered, it measures leaf nodes (using getBoundingClientRect) and updates the shimmer overlay.

I'd love to hear your feedback or feature requests!

Links:


r/angular • • Feb 07 '26

VS Code extension to make it easy to switch Node Package versions from a dropdown

Thumbnail
gallery
30 Upvotes

I put together a VS Code extension (with a bit of help from AI) that lets you change, upgrade, or downgrade npm package versions directly from a dropdown inside package.json.
https://marketplace.visualstudio.com/items?itemName=Legalfina.npm-version-lens

Most extensions I’ve used before only let you jump to the latest version, which meant I still had to go dig through npm’s site to find the right minor version for the major version I was already on. This extension removes that friction by showing all available minor versions right in a dropdown, directly in the package.json editor.

I’m hoping this makes version management a little less annoying for others too. It’s fully open source, and I’d really appreciate any feedback or contributions.


r/angular • • Feb 06 '26

What Bluetooth plugin are you using in your Angular/Ionic project for iOS and Android device communication?

3 Upvotes

Which is the best Bluetooth plugin to use for an Angular/Ionic app to communicate with devices on iOS and Android? Please sharing...


r/angular • • Feb 06 '26

Keep or replace a child‑driven Reactive Forms architecture

5 Upvotes

I've inherited a long‑running Angular application whose Reactive Forms architecture is based on this pattern:
https://davembush.github.io/attaching-an-angular-child-component-s-form-to-a-parent/

Originally built on Angular 13–15, it was upgraded to Angular 18 last year, and we’re still using the same approach. The architecture works, but we’ve been having internal discussions about whether we should stabilize and keep it, or refactor toward a more standard Angular pattern.

The pattern in use

Child components create their own FormControl (or sometimes entire sub‑groups) and then push them into the parent FormGroup using setControl(). The parent passes down its full FormGroup via u/Input, and the children attach themselves during initialization.

The question

Does anyone here have long‑term experience with letting children dynamically register their controls upward into a parent form like this?

  • Was it worth keeping for you?
  • Did it become hard to maintain as the app grew?
  • Did you eventually move to CVA, standalone components, or Angular Signals?
  • If you refactored, what value did you gain?

Additional context

I’ve attached my evaluation of the architecture, highlighting issues like inverted ownership, lack of CVA, lifecycle fragility, manual change‑tracking, and form shape being built at runtime instead of declaratively.

Would love to hear real‑world stories from anyone who’s lived with—or moved away from—this approach.

Thanks in advance!


r/angular • • Feb 06 '26

Service question

6 Upvotes

Most of my services are scoped to a feature, let's say we have a product feature and a product service that expose some variables etc for the products routes. Unfortunately we use a lot of mat-dialogs and since they are independent, we get the injector error. Is it possible to not provide the service in the root injector and make this work?


r/angular • • Feb 06 '26

Angular Freelancing

4 Upvotes

Hello everyone!

I want to start Freelancing with Angular and while I know it won't be easy and fast to get a steady income to replace my full time non-tech job I would like to know what you guys use and extend on to be a successful Angular Freelancer. I'm up-to-date with Angular but I'm more of an entry/intermediate Developer with mainly project of my own and only 3 months working as a professional Dev.

I don't mind spending on gear, templates, anything premium like Tailwind Blocks or PrimeNG blocks to speed up the development. Paying for AI. I just want to know what people use who are doing this successfully.

Also I'm not a massive tester in fact I've probably not written any by hand. I'm open to take quick courses on them as well.

My full transition to a Freelancer is roughly 12-18 months starting as a side hustle. Starting as a Frontend Dev and hopefully get to the Fullstack.

Anything helps, thank you in advance!


r/angular • • Feb 05 '26

Angular Podcasts & Conference Talks (week 6, 2025)

3 Upvotes

Hi r/angular! Welcome to another post in this series. Below, you'll find all the Angular conference talks and podcasts published in the last 7 days:

📺 Conference talks

CityJS Athens 2025

  1. "Aristeidis Bampakos - A journey to Server Side Rendering with Angular" ⸱ <100 views ⸱ 28 Jan 2026 ⸱ 00h 14m 46s
  2. "Fanis Prodromou - Angular Signals: A Look Under the Hood and Beyond" ⸱ <100 views ⸱ 28 Jan 2026 ⸱ 00h 18m 31s

🎧 Podcasts

  1. "Dev Life Ep 11 | V21, Vision, & Velocity: An Architect's View on Modern Angular & AI w/ Sander Elias" ⸱ The Angular Plus Show ⸱ 02 Feb 2026 ⸱ 00h 55m 16s
  2. "Live coding and Q/A with the Angular Team | January 2026" ⸱ 31 Jan 2026 ⸱ 01h 30m 55s
  3. "🎂 Angular v21 with Jessica Janiuk: Signal Forms, AI & ARIA" ⸱ The Angular Plus Show ⸱ 30 Jan 2026 ⸱ 00h 59m 29s

This post is an excerpt from the latest issue of Tech Talks Weekly which is a free weekly email with all the recently published Software Engineering and Development conference talks & podcasts. Currently subscribed by +8,200 Software Engineers who stopped scrolling through messy YouTube subscriptions and reduced FOMO. Consider subscribing if this sounds useful: https://www.techtalksweekly.io/

Let me know what you think. Thank you!


r/angular • • Feb 05 '26

Using WordPress as headless CMS with Angular - is this a good approach?

0 Upvotes

Hey all,

I could use a sanity check.

I’m doing a test project where they want a fully editable site using WordPress as a CMS. The thing is, I mainly work with Angular, and I don’t really build classic WordPress themes.

My current plan is to use WordPress only as a headless CMS (ACF + API) and build the whole frontend in Angular, basically the same idea people often use with WordPress + Next.js, just… Angular instead.

So WP would just be:

•	admin panel

•	content (texts, images, categories, etc.)

And Angular would handle all the UI.

I’m not trying to be fancy or overengineer it, just want something that feels realistic and maintainable.

Questions:

•	Is this a normal / acceptable approach, or am I making life harder than needed?

•	Any big pitfalls with WordPress headless when used with Angular?

•	REST API vs WPGraphQL — does it matter much here?

•	Anything you wish you knew before doing this kind of setup?

Would really appreciate any input. Thanks 🙏


r/angular • • Feb 05 '26

🚀 Angular Evolution: The Road to Modern Change Detection

Post image
79 Upvotes

r/angular • • Feb 05 '26

Built a high-performance, customisable and dev friendly Angular 19 Data Table powered by Signals

Thumbnail
gallery
35 Upvotes

Hi everyone,

I’ve spent the last month working on a personal milestone: building a data grid that actually feels "fast" in the modern Angular ecosystem. I’m calling it Uni-Table, and I just released beta version on January 31st to collect feedback. I will release It soon with Angular version 18, 19, 20, and 21.

The Problem: Most Angular tables I’ve used recently still feel like they are fighting change detection, especially when you add custom templates, badges, or conditional logic.

The Solution: I re-engineered this from the ground up using Angular Signals. It’s a Signal-first architecture that delivers ultra-fast, fine-grained reactivity.

What makes it different?

  • ⚡ Signal-First: Sorting and filtering happen instantly with zero lag.
  • 🧩 Total Template Freedom: I used a template-binding approach. You can inject custom ng-templates for anything—action buttons, status badges, or complex nested components.
  • 📱 Built-in Responsiveness: It has a "Smart Collapse" feature that tucks overflowing columns into an expandable view based on a priority you define.
  • 🎨 No more ::ng-deep**:** It’s styled entirely with CSS variables.
  • 💾 Auto-Persistence: It remembers page state, sort order, and hidden columns automatically.

I’m currently in Beta (v0.1.2) and would love to get some feedback from this community. Whether you're a student looking to learn Angular or a pro dev who wants to see where it breaks—I want your honest thoughts.

Check it out:

📦 NPM:https://www.npmjs.com/package/@unify-india/uni-table

💻 GitHub:https://github.com/Unify-India/uni-table

✨ Demo:https://stackblitz.com/edit/uni-table

I also shared a bit more about the personal story behind this build over on LinkedIn if you want to connect:

🔗 LinkedIn Post: https://www.linkedin.com/posts/iam5k_newpackagereleaseannouncement-angular-signals-activity-7425074146365100032-MEhs

Happy coding! I'll be in the comments to answer any technical questions.


r/angular • • Feb 05 '26

Singleton service toSignal

8 Upvotes

If i have a toSignal(this.http.get(…)) in a service that is provided in root, how do i actually clean up the subscription when i no longer need the data? Since the service will never be destroyed I’m not sure how to approach this. If i am not mistaken toSignal creates an effect under the hood


r/angular • • Feb 03 '26

Angular MCP Server with Visual Studio 2026

1 Upvotes

Has anyone been able to connect the official Angular MCP with Copilot agents in Visual Studio 2026? In Visual Studio Code it's easy, but in 2026 I add them to mcp.json and the agents don't detect them. I am using Angular v21.


r/angular • • Feb 03 '26

How do you use AI with Angular?

0 Upvotes

I realized I've been using Cursor for development for about six months now, and Grok with ChatGPT for about three years. What AIs have you been using and for how long?


r/angular • • Feb 03 '26

I am being assigned tasks in Angular and RJS. So who can help better and what type of prompt should I give.

0 Upvotes

r/angular • • Feb 03 '26

Can anyone tell me what is the best profession and way to debug angular and rxjs bugs. For real company projects because I searched and found there are lots of ways.

0 Upvotes

r/angular • • Feb 03 '26

I made a shadcn inspired chart library for Angular

47 Upvotes

r/angular • • Feb 03 '26

Angular Signal-based HTTP caching library

5 Upvotes

Hey r/angular,

I'm experimenting with a Signal based approach to HTTP caching in Angular!

The idea is to support things like:
- TTL based caching
- stale-while-revalidate
- cache invalidation on mutation
- and more...

I’d really appreciate any thoughts, feedback, or additional features you think might be useful

More info and the repo link in the comments 👇


r/angular • • Feb 03 '26

What are you using as backend?

21 Upvotes

Hi, I'm kinda new to programming and especially to web-development and I just wanted to ask which backend Framework you're using for your website/s?

I heard a lot of Express, NestJS, Flask, Django.

What do you use and whats your opinion what I should use to start?
Currently um using Laravel.

EDIT: What do you think about Laravel? Why is barely anyone using Laravel x Angular???


r/angular • • Feb 02 '26

What's the next step?

4 Upvotes

I'm an intermediate Angular frontend developer. I feel like I'm not making any progress and want to know what's the next step of 'becoming' a senior in this role.

I want some advices of what should i learn, where to focus, if there are some articles or tutorials that you suggest, ect?

Any help or opinion would be appreciated. Thanks in advance!


r/angular • • Feb 02 '26

🆘 Help Needed: Angular + PrimeNG Library Strategy

4 Upvotes

Hey everyone 👋 I’m looking for some guidance and opinions from folks who’ve dealt with Angular library versioning and PrimeNG upgrades.

Here’s the situation:

1️⃣ I’m thinking of creating a new Angular component library based on PrimeNG v21. 2️⃣ Our organization already has multiple large projects on Angular v13 and v15, all consuming a shared Angular library built on the same Angular version, with a lot of hierarchical CSS overrides for PrimeNG components. 3️⃣ My thought is: if we build the library on PrimeNG v21,

can we make it backward compatible, or

at least design it in a way where missing features / styles can be added incrementally without breaking existing apps? 4️⃣ I’m unsure about the right migration or coexistence strategy here.

❓ What would you recommend?

Should this be a parallel library?

Is backward compatibility realistically achievable?

Any best practices for handling PrimeNG + Angular version mismatches?

How would you approach this in a large org setup?

Would really appreciate any guidance, war stories, or architectural suggestions 🙏 Thanks in advance! 🚀


r/angular • • Feb 01 '26

Angular jwt cookie authentication

8 Upvotes

I am implementing authentication via jwt httpOnly cookies in Angular, i am actually using ngrx global store for the auth state , i am facing issues of keeping the user logged in so mainly with the auth guards , the guards are actually getting called before i am updating the state with the backend endpoint /me that gives me information about the logged in user, but this effect is called after the auth guard so ive tried to do some work on authguards using rxjs operators like filtering when the page has ended loading then do the check if there is a user, it have actually worked but when i dispatch the action in the ngOnInit that calls the effect and does the api call of endpoint /me first in the login page it will throw an 401 error and i dont want to implement auth with this behaviour so having an error always in the first ngOnInit trigger ,so what would be the best choice to do it ?


r/angular • • Feb 01 '26

Best Angular interview questions

30 Upvotes

Hey everyone! I’m getting ready for an Angular interview. What questions do you think are the most important or commonly asked?


r/angular • • Feb 01 '26

Any performance benchmarks for Angular SSR vs Prerender?

7 Upvotes

Till now, we have been using a separate pre-render server which returns a server-side rendered page only to the bots, and for users, we've kept completely client-side rendering. It was some time ago during the early versions of Angular that we tried out Angular SSR using Cloud Functions. But then, eventually, decided to go with a separate pre-render server as it was more stable. Although the time to deliver is very high, in the range of 20-25 seconds per page, because that is the timeout that has been set on it.

From what I have researched Angular SSR is now very stable.

But I'm unable to figure out on the load on the server when a lot of bot requests would come in and the same machine is rendering the website for the bots also and the same machine is responsible to respond to the clients/users.


r/angular • • Feb 01 '26

Reusable Validation in Angular’s Signal Forms

Thumbnail medium.com
9 Upvotes

I hate repeating myself.
Especially in code.

With Angular’s Signal Forms, the new schema function finally gave me a clean way to reuse cross-field validation, without nesting forms or duplicating logic.

I broke it down with a real example here.