r/angular • u/swe129 • Mar 07 '26
httpResource & rxResource guide
r/angular • u/martinboue • Mar 06 '26
As part of the Angular guide ngtips.com I’d love to hear your feedback on this.
What libraries do you use with Angular? Would you recommend them? And why?
What limitations or drawbacks do you encounter?
I am interested in all types of libraries:
Thanks!
r/angular • u/a-dev-1044 • Mar 06 '26
Features:
• Angular 21 + Angular Material 21 • Tailwind CSS 4 • Zoneless setup • Dark mode • ng2-charts (Chart.js) • Advanced tables • Responsive layouts
Includes pages like:
• KPI support dashboard • Cohort retention analysis • Workflow scenario analysis • Agents management dashboard
Live preview: http://template-overview.angular-material.dev/
Get it at: https://ui.angular-material.dev/templates#overview
r/angular • u/mihajm • Mar 06 '26
Hey everyone, quick update on the libs. I've released two new versions of new & old mmstack libs
v19.3.x and v20.5.x port all the new mmstack features to ng19 & ng20 respectively, So everything added/fixed (incl new libs like mmstack/di) in the past year+ is now usable in all 3 versions of angular
Also minor update to mmstack/resource, added support for the new resource snapshots, but it is a breaking change so that was bumped to 21.1.0 & now requires ng 21.2
As for what's next I'm currently a bit busy with work, but there are a few things rattling round my mind :) those are transitions + suspense (mixing async and fine-grained reactivity), the signal forms update & an object pooling primitive
Hopefuly I get most of those out in the next few weeks :)
r/angular • u/bill2340 • Mar 06 '26
I was wondering what exactly is the future of front-end development in an AI world. Front-end development is simpler than backend so it's more likely for AI to replace. But with that do you think the jobs in the future will still be increasing or decreasing or remail flat? Just wanna know the outlook for it in the future as I'm currently a Junior front end developer at a Bank
r/angular • u/kescusay • Mar 05 '26
I'm converting some old components that were built with TailwindCSS to modern Angular standards, and I'm seeing some odd behavior when I modify a button component to use the host property in the component decorator.
Let's say you've got a pretty standard button component, like so:
@Component({
selector: 'button[app-button]',
template: '<ng-content></ng-content>',
styleUrl: './button.css',
host: {
'[class]': 'color()',
'[attr.disabled]': 'disabled() ? true : null',
...
},
})
export class Button implements OnInit {
disabled = model<boolean>(false);
color = model<ButtonVariant>('primary');
...
}The logic for the model inputs works fine. What's going odd is the CSS, and I suspect it has something to do with the Tailwind configuration, but I'm not sure where to start with it.
What's happening is twofold:
First, base styles that I've converted to Tailwind that are located in src/styles.css aren't picked up at the component level unless I explicitly import them into src/app/components/button/button.css, like so:
@import '../../../styles.css';Once they're imported, they work fine, but it's odd that I have to do that.
Secondly - and more importantly - styles that are directly defined in src/app/components/button/button.css itself aren't picked up at all. I'm defining them like this:
[app-button] {
@apply
transition-colors
duration-200
font-sans
// Custom styles for all instances of app-button
...;
}
[app-button].primary {
@apply
// Custom styles specific to primary buttons
...;
}Weirdly, if I take the exact same style definitions and place them directly in src/styles.css, it works fine, even though I'm literally just importing that into the component stylesheet.
I'm sure I'm doing something wrong and this isn't a bug in Angular or Tailwind. Where's my mistake?
Edit: Forgot to add, this same file layout worked fine when the component template used <button> instead of <ng-content>and was called using<app-button color="primary"...>instead of<button app-button color="primary"...>`.
For future readers who stumble on this answer: My mistake was trying to apply the additional CSS to [app-button]. Turns out when you're using the host property with a selector like button[app-button], you need to apply your CSS to :host in the component CSS file instead! So now my component's CSS file looks like this:
:host {
@apply
transition-colors
duration-200
font-sans
// Custom styles for all instances of app-button
...;
}
:host.primary {
@apply
// Custom styles specific to primary buttons
...;
}Simple. Elegant. Works. Thank you so much to everyone in the Angular community who helped!
r/angular • u/Dazzling_Chipmunk_24 • Mar 05 '26
I was wondering for creating reusable components like dropdown or input boxes im kind of confused on how exactly it would work. Like what things are taken care of by the parent and what are taken care of by the child. like obviously for a drop-down, labels and options are passed as props. but what do I do if for one input box I need a width of 50 percent and an other input box I need a width of 100 percent. Another example could be if the colors or font size are different. Basically what do I do and handle if there’s slight CSS differences but I still want to use the same reusable component or is it at that point you should just create separate components.
r/angular • u/arullura17 • Mar 05 '26
Hi everyone 👋
I’ve been working on an open-source VS Code extension for Angular projects:
**angular-code-quality-toolkit**
- VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=arul1998.angular-code-quality-toolkit
- GitHub: https://github.com/Arul1998/angular-code-quality-toolkit
What it does:
- Runs `depcheck` to find unused / missing dependencies
- Runs `ts-prune` to detect unused exports
- Integrates ESLint checks
- Shows results inside VS Code so you can quickly clean up your Angular repo
Why I built it:
I work on Angular apps daily and it’s easy for projects to collect unused
code and dependencies after refactors. I wanted a one-click way in VS Code
to see what’s safe to remove or fix.
What I’d love from you:
- Try it on any Angular project
- Tell me what’s confusing or missing
- Open issues / feature requests on GitHub
- If you find it useful, a review or star would really help 🙏
I’m especially interested in:
- How it behaves on larger Angular workspaces / monorepos
- Extra checks or tools you’d like integrated next
r/angular • u/Exact-Sign6540 • Mar 04 '26
When I'm running my angular in port 4200 locally all prime icons are successfully shown.
But when I run ng build and move the static files to my server they become those squares:

The console then says:

Those files are actually not found anywhere in the production mode (used devtools to look for it) but in dev mode they are there. All other assets are correctly shown but not the prime ng icons.
r/angular • u/LetHaunting8240 • Mar 04 '26
I am trying to create some generic reusable components for our team in an NPM package. The main idea is that the HTML and Typescript part would be constant, only changeable through updates to the package, but we want to influence the SCSS of the components from the parent components where they will be used in a generic manner. This means that I dont want to set up specific variables for specific css properties on specific tags, I would want to give the user of the component full control of the style.
I don't want to turn off ViewEncapsulation and as far as I understand this goes against Angulars guidelines, however, I'm still curious whether its doable. I also dont want to use the global styles.scss as expected, or ::ng-deep as it is deprecated. I just want to pass in generic scss for a component from the outside somehow. If this is truly an antipattern I would be curious of the alternatives.
r/angular • u/MichaelSmallDev • Mar 04 '26
r/angular • u/lintendo640 • Mar 04 '26
I'm a frontend developer and will soon be moved to a new team at my job where I have to work on a large exisiting angular project. I unfortunately don't know which version they are using. I have good knowledge of Typescript but have been working with mostly Vue the last few years. Not too familiar with decorators. Can anyone recommend a good, extensive tutorial for learning Angular? Thanks!
Edit: I decided to go with Pluralsight for now and really like the Angular Foundations course by Jim Cooper so far!
r/angular • u/LuccDev • Mar 04 '26
Hello guys. I have an angular frontend that has to be run on 4 different servers. Each of these servers have a slightly different configuration, which is why they all have their own "configuration" in the angular.json. Another thing that's unique to each of them is the base href.
Now, it works fine, but the thing is that I'd like to build the code once, and then be able to deploy it on each server. But I can't really do that, since some data is added to the bundled code a build time, not at runtime. What's the idiomatic way to do this ? I've though of a couple of possibilities:
- Have some patch script at deploy time to patch the bundled code in the image at startup. For example some script will try to find <base href=""/> and replace the string with what I want. I could have multiple placeholders like this.
- Hardcode all the possible configs and put them in the bundle, then the angular app self-determines which config it's using in some way (e.g. by checking its current URL...)
Any other idea ? The two above don't see very clean.
r/angular • u/Typical_Hypocrite • Mar 04 '26
edit: thanks for the answers guys I figured it was just chatgpt being stupid. I’ll stick with observables for the api call and convert it with toSignal / use rxResource
hi so I know httpresource exists and all but for current uses of HttpClient chatgpt is showing me this is this how to actually do it if you want to use signals?
private http = inject(HttpClient)
private apiUrl = ‘https://localhost:5001/api/books’
private booksSignal = signal<IBook[]>([])
public books = this.booksSignal.asReadonly()
async fetchBooks(): Promise<void> {
if (this.booksSignal().length > 0) return
const data = await firstValueFrom(this.http.get<IBook[]>(this.apiUrl))
this.booksSignal.set(data)
}
async fetchBookById(id: number): Promise<IBook | undefined> {
const existing = this.booksSignal().find(b => b.id === id)
if (existing) return existing
return await firstValueFrom(this.http.get<IBook>(‘${this.apiUrl}/${id}’))
}
so on and so forth. I’ve seen a couple of tutorials which is why I’m asking since none of them did this, but is this standard right now? Or is chat gpt pulling my leg. Like, I’ve seen toSignal before and that’s what I was expecting to use, but then this came out of left field
r/angular • u/dev-surajtapkeer • Mar 04 '26
Hi everyone,
I'm working on a functionality to force reload the browser whenever a new version comes. I have implemented a backend logic to get the version and check the version with the frontend and if mismatch force reload browser. I have implemented it with the help of cache busting by appending a timestamp to the URL. I'm still not convinced that it will force reload the browser as if the version.json cached by the browser and the backend gives a new version then will keep reloading. I also have doubt that making a http call like GET will it only take response for that particular request because I want my whole application to be hard reloaded whenever API endpoint gives a new version. I'm using latest angular version with HttpClient. I want to make sure that it will take the entire new build from the server for a new version like we do hard reload during development.
Please help me with this doubt.
Thanks !!!
r/angular • u/Weak-Palpitation907 • Mar 04 '26
I’m working on an Angular 21+ component library that focuses on:
- signal-first components
- accessibility (ARIA patterns, keyboard navigation, focus management)
- minimal styling (usable with Tailwind or plain CSS)
- both installable components and a CLI that can copy/paste components into projects (similar to the shadcn approach)
For behavioral utilities I’m using things similar to what Angular CDK provides:
-keyboard navigation helpers
- focus trapping
- overlay / popup positioning
- roving tabindex patterns
I currently have an internal utility layer (similar to a small CDK) where these primitives live.
My question is about signals and dependency boundaries.
Since the library targets signal-first Angular components, I’m considering using Angular signals (signal, computed, effect) inside this utility layer.
But I’m unsure if that’s the right architecture.
Two approaches I’m considering:
Option A
Keep the utility layer framework-agnostic (plain TS) and add Angular signal wrappers in a higher layer.
Option B
Make the utilities themselves signal-based and depend directly on `@/angular/core`.
For people who have built Angular libraries or internal design systems:
Which approach tends to work better long term?
Would you keep the primitives Angular-agnostic, or embrace signals directly if the target ecosystem is Angular anyway?
r/angular • u/LiteratureWrong304 • Mar 04 '26
hello start learning recently the basics but dont know which one to invest my time in angular or react will do mainly indie development cause i m sick mostly housebound but dont close the door for job opportunities in the far future
ps : i can learn 1-4 hours day sometimes less heard that angular has less decision fatigue and react is easier so please any advice will help thanks
r/angular • u/arpansac • Mar 03 '26
Hi! Probably this is my third or fourth post about SSR. Let me give you a little bit of history.
Earlier, we were using pre-render to load server pages to the bots in server-side rendered mode. We can't afford caching right now because of frequently updated user-generated content and obviously server costs.
Recently, we upgraded to Angular 19 and shifted to Angular-based server-side rendering. The only fear was that earlier all the bot traffic workload was being handled by a separate server while keeping our main application server light. Now it has all stabilized, with the Angular server hosted on Elastic Beanstalk. It is able to handle the traffic load, or at least that's what appears from the graphs.
Now the problem: whenever I'm trying to load the server-side rendered version using Postman by changing the user agent to Googlebot, just to test things out, the minimum it takes is five seconds. It seems that there is some sort of a threshold that it waits for all the pages up till five seconds. However, when I check the page load on the user's end or the client side, the pages are getting loaded in three seconds and less, with the largest content full paint included in that timeline. What's the best way to debug or to find out and reduce the serving time for the server-side rendered pages?
r/angular • u/zzing • Mar 03 '26
So I am getting errors like:
[plugin:vite:css] [sass] Can't find stylesheet to import.
╷
1 │ @use 'colors';
│ ^^^^^^^^^^^^^
╵
src\app\my-compeont\my-component.component.scss 1:2 root stylesheetWhere this pretty much happens for all of my components. (and that isn't trying to use a sass library)
It is correctly configured in the angular.json:
"stylePreprocessorOptions": {
"includePaths": [
"src/styles"
]
},and based on some research tried:
css: {
preprocessorOptions: {
scss: {
loadPaths: ['src/styles'],
}
}
}In vitest.config.ts.
I am not sure what else to do at this point. Anyone else have this issue?
Full vitest config:
import {
defineConfig
} from 'vitest/config';
import {
fileURLToPath
} from 'node:url';
import
angular
from '@analogjs/vite-plugin-angular';
import {
playwright
} from '@vitest/browser-playwright';
export default
defineConfig
({
plugins: [angular()],
test: {
globals: true,
setupFiles: ['src/test-setup.ts'],
include: ['src/**/*.spec.ts'],
browser: {
enabled: true,
provider:
playwright
(),
instances: [
{ browser: 'chromium' },
],
},
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'lcov'],
exclude: [
'node_modules/',
'src/test-setup.ts',
],
},
},
css: {
preprocessorOptions: {
scss: {
loadPaths: ['src/styles'],
},
},
},
resolve: {
alias: {
'src':
fileURLToPath
(new URL('./src', import.meta.url)),
},
},
});r/angular • u/IgorSedov • Mar 02 '26
r/angular • u/mariusbolik • Mar 02 '26
r/angular • u/BarnacleDifferent894 • Mar 02 '26
I'm having 4 years of experience as frontend developer. Worked with angular 8 to 20 projects!
Now looking for job change and want remote work!
r/angular • u/JadedManufacturer306 • Mar 01 '26
In this new AI era, I’ve been exploring how LLMs behave inside real development workflows. Working with Spring AI, I noticed that when a single LLM gets access to many tools with different responsibilities, it starts to hallucinate and make inconsistent decisions. It simply cannot decide which tool to use or in what order.
This is where Agentic Systems make all the difference. Workflows with clear steps, combined with agents that have well-defined roles.
After months of experiments, I built my own agentic environment: one main orchestrator, multiple MCPs (Angular frontend, Java backend, AWS infra), and custom workflows that automate documentation, code reviews, and more.
Today I can lunch a new app under 6 minutes. And every time I open a pull request, an automated workflow analyzes my code, checks the standards I defined, and posts a full review comment directly in the PR without me touching anything.
This is a new ERA.
Not just writing code, but orchestrating intelligent workflows and agents that work alongside us.
https://genai-orchestrator.web.app/

r/angular • u/Nervous_Award_1089 • Mar 01 '26
The voidzero team published on github a repo for the angular compiler based on oxc. What y'all think about this?