angular17 Questions
3
Solved
I would like to initialize some important values when my application starts (Angular v17).
app.config.ts:
export const appConfig: ApplicationConfig = {
providers: [
ConfigService,
...
{
provid...
Wurster asked 9/4 at 12:12
3
Solved
ng serve is working fine, but ng build is giving this error.
X [ERROR] Could not resolve "path"
(disabled):node_modules/jsdom/lib/api.js:3:21:
3 │ const path = require("path")...
Dacca asked 1/2 at 6:14
3
Here is the code that is throwing error:
user-list.component.html:
<ul>
<li *ngFor="let name of names">Hello {{ name }}</li>
</ul>
Error:
NG0303: Can't bind to ...
2
Solved
I used to use a proxy with Angular <= 16, using webpack.
Switching to Angular 17 and default esbuild/vite, the proxy configuration does not seem to work anymore.
This configuration used to work:...
2
I recently upgraded my Angular project to version 17, and now I'm encountering many browser console warnings like the following messages.
NG0912: Component ID generation collision detected. Compon...
Kirov asked 27/3 at 10:57
3
Solved
X [ERROR] Expected $config.color.primary to be a valid M3 palette.
angular 17
I can't find the expected valid M3 palette for @angular/material-experimental anywhere.
tryied this in styles.scss:
@us...
Agnail asked 17/4 at 11:1
2
Solved
I have just upgraded angular app from 16 to 17. Application has custom theme as below.
custTheme.scss
@use '@angular/material' as mat;
@include mat.core();
$pp: mat.define-palette(mat.$indigo-pal...
Overelaborate asked 5/2 at 7:20
2
Solved
since I updated Angular to version 17 I can't create web components..
I used to do it in app.module, where are they created now?
I tried in app.component as the guide says but it doesn't seem to wo...
Prase asked 6/2 at 9:26
1
We would like to configure vite settings in Angular 17 via a vite.config.js file or some other way. Specifically, these settings:
export default {
optimizeDeps: {
disabled: false,
exclude: [
'm...
0
I am enthralled with Angular Signals, exactly what I want out of the library, but one thing that I have commonly found is that I accidentally am calling a signal reference somewhere (in a template ...
Betide asked 22/2 at 2:8
2
Solved
I started a personal project that using angular 17 in front-side and decided to use ngx-bootstrap. Ngx-bootstrap released a version([email protected]) compatible with angular 17. But I got an ...
Arkansas asked 17/1 at 22:16
0
I found a similar question but the solution does NOT include customizations like dark mode.
I have currently defined in the dark-theme.scss the following code
$dark-theme: mat.define-dark-theme(
...
Phenolic asked 21/2 at 10:31
2
Solved
As you know in angular 17 we can have different syntax for ngIf, ngFor and so on. Am looking for an efficient way of migrating old syntax in html files to the new on presented in Angular 17:
For ex...
Laurence asked 16/2 at 14:27
3
Solved
How can I define the index variable in @for in Angular 17
const users = [
{ id: 1, name: 'Ali' },
{ id: 2, name: 'reza' },
{ id: 3, name: 'jack' },
];
<ul>
@for (user of users; track us...
Eisenhart asked 16/2 at 15:6
1
In the new version of Angular V17, the @if directive can be used as a replacement for ng-container, which is fantastic. However, sometimes *ngIf is more concise, such as when determining whether to...
Gehrke asked 23/11, 2023 at 2:42
1
Solved
Issue
I'm working with an Angular v17 app configured in standalone mode, experiencing issues integrating with Keycloak libraries. Specifically, Keycloak isn't automatically appending the authorizat...
Dichromic asked 30/1 at 9:57
3
I am getting above error even though I have imported CommonModule in all related modules having NgIf or NgFor and BrowserModule is only imported once in app.module.ts
What else I can do please hel...
Configuration asked 15/1 at 13:48
2
Solved
I googled around and found way to debug Angular apps in Rider but it doesn't feel right because of the steps it requires to do such a simple thing, so I'm here to ask if the approach is correct and...
Brakesman asked 31/12, 2023 at 23:31
2
I just created a custom Pipe and normally I would register it in app.module.ts, but In Angular 17 we dont have that file. How do we register now? TIA
I was thinking of importing into the imports ar...
1
Solved
I am unable to add a scrollOffset option to my Angular 17 bootstrap config.
Before Angular 17, you'd have an app module that imports a routing module as such:
import { NgModule } from '@angular/cor...
1
Solved
I'm migrating from angular 16 to 17 and I encountered the issue that I need to replace all the usages of *ngFor and *ngIf and ngSwitch with the new syntax (@for and @if and @switch).
I know the v17...
Zouave asked 15/11, 2023 at 17:0
1
© 2022 - 2024 — McMap. All rights reserved.