7 questions from the last 7 days
Score of 1
2 answers
87 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
78 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
66
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
77 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
99 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
63 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
159 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 ...