306,733 questions
0
votes
1
answer
15
views
Extend signal form's FormField directive
Just learning signal forms and I'm trying to extend the functionality of the new FormField directive in angular 21 to add some custom classes to show valid/invalid states on my input.
So, here's what ...
Best practices
0
votes
1
replies
14
views
Angular v21 ssr provide dynamically loaded routes
I have Angular v21 app in ssr standalone architecture. In my app.ts I dynamically load either a mobile or desktop version depending on the window width. I want both mobile and desktop versions to ...
0
votes
0
answers
30
views
Angular 17 - routes extraOptions not working in a standalone + modules type mix application
Environment:
Angular 17
Application starts as standalone. Some parts of the application is having standalone components and some have modules. The issue is in a component which is part of a module.
...
0
votes
0
answers
37
views
Multiple instances of angular component react to changes from other instances
I have a moderately sized angular app with an edit control (edit, save, cancel) used throughout the app that controls permissions, view state/etc. There can be multiple instances of this component in ...
Best practices
1
vote
3
replies
33
views
Angular : data fetched is not appearing in html
I am creating an e-com project. I am fetching data from the backend, the data is being returned, but in my html, the array is appearing empty.
private apiService = inject(sProducts);
url: string = &...
0
votes
0
answers
34
views
Angular 14 ES5 build still fails on LG webOS 3 / webOS 4 (Chromium 68) – runtime error Cannot read property 'get' of undefined
We are using Angular 14 for our frontend application. As per Angular’s build process, the final output is plain HTML, CSS, and JavaScript. Based on this, our understanding is that Angular applications ...
0
votes
1
answer
24
views
Cypress unable to find a Quill editor in Angular table
I am trying to automate a table test on a site written in Angular, I can get Cypress to find the field label but it just won't locate the actual Quill editor inside the multiple-text element. I can ...
0
votes
1
answer
53
views
Building Angular app with 'npm run build' gives Node.js version error, but 'ng build' works
When I try to run npm run build , Angular complains about the Node version installed. The version it's complaining about is not installed at all, and definitely not the one that NVM currently set to.
...
0
votes
1
answer
56
views
How to do a parameterized animation using animate.enter in Angular 21?
I'm currently migrating my projects from @angular/animations to CSS animations because the animations library is deprecated and going to be removed in Angular 23.
Migrating animations to CSS ...
-2
votes
0
answers
35
views
Micro frontend using Angular 18 native federation module with Primeng 18 [closed]
We have a micro frontend setup consisting of a host application (shell app) and a remote application. PrimeNG v18 and its required dependencies (PrimeIcons, PrimeFlex, Angular CDK) were installed and ...
0
votes
0
answers
68
views
Angular 21 signal forms: How to loop over an array of complex sub-objects? [closed]
Let's take this simple example: I have want to write an app that edits an objects that has a list of e.g. users as one property and a user edit component should be rendered for every user in the list.
...
Best practices
0
votes
2
replies
36
views
One signal vs. multiple derived signals for complex api responses?
I’m working on a project using Angular 17+ Signals and I’m looking for some advice on the best way to expose data from a service to multiple different forms.
I have an API that returns a settings ...
0
votes
0
answers
81
views
CanActivate and SSR In Angular 21
I encountered an issue with my Angular Guard. When I type a path, for example /home, I get automatically redirected to /login.
Here’s the Guard code I’m using:
import { isPlatformBrowser } from '@...
1
vote
1
answer
45
views
How to add conditions to an i18n translation file
I have an angular application available in English and French. It displays the list of pictures of different countries
@for (country of countries; track $index) {
<h2 i18n>Pictures of {{country}}...
1
vote
0
answers
78
views
HTML Canvas Drawing Works on Desktop But Not Mobile
I am attempting to use HTML canvas to collect signatures. The drawing works perfectly on mobile but I cannot seem to get the drawing to work on mobile. To be clear the canvas does appear on mobile, it ...