306,452 questions
Best practices
1
vote
1
replies
66
views
Path mappings from Angular App to Angular Library source files (*.ts)
I have an Angular app project that I'm currently splitting into an Angular library and an Angular app because I want to reuse the library part in another Angular project.
The Angular docs state the ...
Score of 0
2 answers
129 views
Custom Angular component with Signal Forms inside mat-form-field not rendering (MatFormFieldControl issue) – Angular 22 [closed]
I'm trying to create a reusable custom select component (timezone-select) that works seamlessly with Angular Signal Forms and Angular Material's mat-form-field.
Goal
Use it like a native Material ...
Score of 1
2 answers
126 views
Angular Material 3 Light and Dark modes
I want to be able to let the user select themes and light or dark mode, but let the system default light/dark mode apply when selecting a different theme, but I can't figure it out.
For some reason ...
Score of -5
0 answers
92 views
How to resolve Angular package vulnerabilities [closed]
I am developing an Angular version 21 application. When I ran npm audit fix, gave 5 vulnerabilities.
I ran this npx npm-check-updates command and updated some packages.
Below is package.json file:
{
...
Best practices
1
vote
2
replies
76
views
Test angular signal form
I want to write vitest tests for a component that uses a signal form. I tried:
import { form } from '@angular/forms/signals';
import { signal } from '@angular/core';
// describe ()...
it('some test',...
Score of 0
1 answer
92 views
Is it possible for the backend to change the redirect URI?
I have an Angular frontend using angular-oauth2-oidc with a C# backend running Duende Identity server. The current redirect URI is simply the website home page. Using 'code' responses.
Currently, when ...
Score of 1
2 answers
117 views
What is the correct way to use media queries with Angular Material?
I am working on a project with Angular Material, and I am using CSS files for styling. I have media queries like this:
@media (width <= 768px) {
.desktop-menu {
display: none;
}
}
However, ...
Score of 0
1 answer
71 views
What is the difference between <mat-icon>thumbs_up</mat-icon> and <mat-icon fontIcon="thumbs-up" />?
I have seen Angular Material Icons used in two different ways: <mat-icon>thumbs_up</mat-icon> and <mat-icon fontIcon="thumbs-up" />. What is the difference between them, ...
Score of 2
2 answers
163 views
How can I reset browser :user-invalid state when resetting an Angular Signal Form?
After resetting an Angular Signal Forms, the browser’s :user-invalid state remains on required inputs. As a result, design system styles that use :user-invalid continue to show error styling even ...
Score of 2
1 answer
126 views
Strange Angular compiler behaviour for ngIf
I've encountered a Angular 17 project where problems which would ordinarily generate a build error don't when inside a div with an ngIf on.
This code fragment generates a build error (which I expect):
...
Score of -1
2 answers
141 views
What is the best practice when an expression is required in signal forms [formField]? [closed]
In our app, we use signal forms and want to bind a value of our form model to an input field:
<input matInput [formField]="formModel.myenum"/>
Unfortunately, the property myenum is an ...
Advice
0
votes
2
replies
69
views
Which AngularFire version to use with Angular 22?
AngularFire people!
How safe is it to use AngularFire v21-rc with Angular 22?
"@angular/core": "^22.0.2",
"@angular/fire": "^21.0.0-rc.0",
Or which A/F ...
Score of 1
1 answer
96 views
TypeError when moving items from one array to another in Angular signal forms
I get this error:
_effect-chunk2.mjs:2601 ERROR TypeError: s_r5 is not a function
at Testing_For_24_Template (testing.ts:21:29)
when moving items from a source array to a destination array in an ...
Advice
0
votes
4
replies
213
views
Where do I find a good in depth rxjs/angular tutorial with examples and tasks too, not only watch videos?
At the moment I'm pretty at the start of programming with Angular and RxJS (about half a year of experience in sum) and I wanted to use some workshops/tutorials/courses to learn how to use RxJS better ...
Score of 2
1 answer
77 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 ...