306,471 questions
Advice
0
votes
2
replies
78
views
Learning RxJS with Angular
At the moment im pretty at the start of programming with Angular and RxJS (about half a year of expirience in sum) and i wanted to use some workshops/tutorials/courses to learn how to use RxJS better ...
2
votes
0
answers
51
views
Ionic Angular ion-input doesn't reset visually when using reactive forms programmatically
I have an Ionic Angular app with two pages (login and signup) that share a root-scoped service holding reactive forms. When navigating between pages using Ionic's router, the ion-input fields don't ...
Best practices
1
vote
3
replies
99
views
What is in angular the best practice to pass optional payload values into an signal form?
We want to put the payload of an server-side http-request into an signal form. Here is the code:
MODEL: order.model.ts
export interface Case {
referencenumber?: string; // <- optional
}
...
Advice
0
votes
0
replies
48
views
How to pass data from the Angular UI into a parent model and child model using the same model or a single model
ow can I pass data from the UI into both a parent model and its child models in .NET Core Web API — should I use the same composite model (single DTO) or separate models?
0
votes
0
answers
106
views
What is the new angular signal form rest()
I'm wanting to reset a form, but with the latest angular signal I'm unable to
I've used to do as follow:
form.reset();
What is the newest angular way of doing it ?
0
votes
2
answers
71
views
markAllAsTouched() for angular signal form
Let say I have a form with a required field.
If the user click directly on the submit button, I'd like to show the field that are invalid. (So the required here).
In the former Angular way, I did :
...
2
votes
1
answer
101
views
Angular material expansion panel not working
I am working on a project with Angular material version 21.2.7 and my Angular expansion panel is not working.
expansion panel
in the expansion panel subitems are there, but not expand when clicked on ...
1
vote
1
answer
85
views
"Error: In this configuration Angular requires Zone.js" when testing Angular library (v21) with Vitest
I get the error message Error: In this configuration Angular requires Zone.js when testing my Angular library components (v21) with Vitest. Unlike my app, which has a polyfills sections, I am unsure ...
0
votes
1
answer
56
views
Browser "edge" is not supported by the browser provider "playwright" when running Vitest in Angular
I wanted to run my Angular (v21) tests in the browser (Edge), and followed the docs. For Edge to work, I had to install webdriverio.
My angular.json looked like this:
"test": {
...
-1
votes
1
answer
56
views
Data path "" must have required property 'project' when generating Vitest config in Angular [closed]
When generating a Vitest config in Angular, I get this error
Schematic input does not validate against the Schema: {"type":"vitest"}. Data path "" must have required ...
1
vote
1
answer
67
views
Direct import of '@angular/localize/init' detected...Include '@angular/localize/init' as a polyfill instead
I tried to customize the paginator messages by implementing MatPaginatorIntl:
import { $localize } from '@angular/localize/init';
@Injectable()
export class PaginationInternationalization implements ...
0
votes
1
answer
140
views
Angular 21 convert observable to signal not working [closed]
I am developing Angular project with Angular version 21, and data is not loading to application from web API(Web API is working correctly). This is the code for loading the data:
export class ...
-4
votes
0
answers
64
views
Items no longer rendering in template on mac OS [closed]
After upgrading from Angular release 21.2.14 to 21.2.15 and now v22. I have an issue on my MacOS with items not rendering
in template I have :
@for(product of products; track product.id_product) { ... ...
-1
votes
0
answers
66
views
How to make PublicClientApplication from @azure/msal-browser perform a successful loginPopup in Angular v20+
Does someone have ever managed to make PublicClientApplication from @azure/msal-browser perform a successful loginPopup in Angular v20+ ? Whatever I've tried so far, it opens the popup, successfully ...
Best practices
0
votes
3
replies
111
views
Does Angular track all dependencies of an @Injectable even when using "inject()"?
In the decorator's usage notes, Angular claims it does track all deps. Also, inject() is the prefered way to inject deps to e.g. a service instead of injecting deps from its constructor.
However, if I ...