Questions tagged [angular16]

For questions regarding Angular specific to version 16. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.

120 questions
0
votes
0 answers

Import FormsModule in shared.module.ts - Angular 16

I am trying to import the FormsModule and the ReactiveFormsModule into my shared.module.ts file. This is the code: imports: [ CommonModule, MaterialModule, FormsModule, ReactiveFormsModule, ], This is the error Value at position 2 in the…
0
votes
0 answers

using workespace and esbuild in angular 16

I have created an angular project with the following structure: I have two applications and a library in my project my problem is when I config angular.json to use esbuild as shown below: after running the project, any changes in easylib dose not…
Hesam Akbari
  • 1,071
  • 1
  • 5
  • 14
0
votes
0 answers

catchError not activated in http interceptor - Angular 15/16

I come from angularJs that I've been using for many years. I am starting a new project using angular 15/16 standalone components and try to handle http errors in relation with my server. But the catchError that manages all the stuff is never…
0
votes
1 answer

Angular 16 signals side effects

Before signals, I had an observable that I would watch to trigger a FormControl's editable property, like this: this.#isItEditor$ .pipe(takeUntilDestroyed(this.#destroyRef)) .subscribe(x => { const funded =…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
0
votes
1 answer

Importing the BrowserModule into a standalone Angular16 project

Angular 16 is recently released and I have created a new standalone project without any module. then in a standalone component I need to import BrowserAnimationsModule from angular/platform-browser/animations. but when I import it, this error…
0
votes
1 answer

How do I just the Jest runner with the watch option

I'm testing the new experimental jest runner that shipped with v16. (@angular-devkit/build-angular:jest). Do have any idea how to run with the --watch option ? Maybe it's not ready yet.
Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
0
votes
1 answer

Angular 16: Router data as component inputs don't work

Here is my code : @Component({ template: ` resolveData: {{resolveA}}
data : {{ dataA }} `, }) class MyComponent { @Input() resolveA?: string; @Input() dataA?: string; } @Component({ selector: 'my-app', standalone: true, …
Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
0
votes
2 answers

Are "MatLegacyXXX" still avalible in angular-material 16?

With the "Migrating to MDC-based Angular Material Components" most/all angular material components where refactored to follow the new concept but the components in the old version are still available as "MatLegacyXXX". However I did not find any…
Stefan
  • 14,826
  • 17
  • 80
  • 143
-1
votes
0 answers

Angular dynamic component (standalone) and material module imports not found

I'm playing with dynamic components and i'm not able to use components from material modules, inside the dynamic component template. It seems that imports ,of the standalone dynamic component, like MatIconModule aren't imported and the error is:…
-1
votes
0 answers

Angular 16 JEST Unit Testing Undefined API_VERSION in environment.ts file error

I recently upgraded my project from Angular 13 to Angular 16 Standalone App. Earlier I was using karma for unit testing and now since Angular 16 supports JEST, I have configured the same in my application. Updated "angular.json" file as…
-1
votes
0 answers

Error: export 'detectOverflow'(reexported as 'detectOverflow') was not found in './createPopper.js' (possible exports: createPopper, popperGenerator)

error occured in Angular 16 when I installed bootstrap angular ngangular and Jquery.Angular 16 ,Ng Bootstrap After import the Bootstrap and Jquery this error is showning when compiling.Please help me resolve this Error.Thanks
-1
votes
1 answer

Angular 16: How do I change the background color of every second row in mat-table and the row background color on hover?

Recently I have upgraded my project from Angular 13 to Angular 16. Post that the CSS workaround I was done for the mat row color on hover and alternate row color is not working . I have found so many references in stack overflow itself but nothing…
Zhu
  • 3,679
  • 14
  • 45
  • 76
-1
votes
1 answer

I'm getting this error, ERROR NullInjectorError: R3InjectorError(D)[Zs -> Zs]: NullInjectorError: No provider for Zs

I added all services to my app module provider and All services have this @Injectable({ providedIn: "root", }) But still, I'm getting this error. I tried all the way ERROR NullInjectorError: R3InjectorError(D)[Zs -> Zs]: NullInjectorError: No…
Akhtar Raza
  • 31
  • 11
-1
votes
1 answer

Some Tailwind CSS classes doesn´t work on my Angular 16 project

I am developing an Angular 16 project with Tailwind CSS V3 installed. I have followed the official docs and it seems everything works; but I can´t understand why some classes work and others not. For example, I can have this piece of code, trying to…
1 2 3 4 5 6 7
8