For questions regarding Angular specific to version 14. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.
Questions tagged [angular14]
536 questions
1
vote
4 answers
Inject parent FormArray into child component in Angular 14
In my parent component, I have a FormGroup with a FormArray, and I want to handle that array in a child component. The parent's HTML does this:
I assumed in the child…

Gargoyle
- 9,590
- 16
- 80
- 145
1
vote
8 answers
How to generate random color in the for loop in javascript
Trying to generate randomly html color codes but not working. So, How to generate it in the for loop. I have tried in google and stackoverflow, but not able to find out the solution. If anyone knows please help to find the solution.
Example…

EMahan K
- 417
- 1
- 19
1
vote
0 answers
Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/postcss-loader/dist/cjs.js):
When i run ng server i have those errors:
The point is that i am trying to update angular 13 to angular 14, however, if i do not user webpack i have a problem with @ in css and looking for info i found that i need a loader so i thought that i should…

Naomi
- 37
- 5
1
vote
1 answer
How to set limitation for mat checkbox in angular 14
Trying to set limitation for checkbox but not working. If i select more then 2 check box i want to not allow to select. I have tried but not working properly. If anyone knows please help to find the solutions.
mauto.component.ts:
toggleSelection =…

EMahan K
- 417
- 1
- 19
1
vote
1 answer
new angular 14 project made by cli missing multiple packages
I have updated my global angular version to 14.1.0 and just created a new project
inside my project I tried to do this:
ng g m views/my-module
but the module is not created and this error occurs in terminal:
An unhandled exception occurred:…

muaaz
- 101
- 11
1
vote
0 answers
Angular 14 application crashes when using ng2-charts upon loading
I saw a similiar problem but it was not with ng2-charts. I already spent more the 1
day on what I believe is an environment issue. I need help big time.
Crash Message:
Error: NG0203: inject() must be called from an injection…

Guy Gallant
- 183
- 1
- 3
- 11
1
vote
1 answer
How to checked mat-checkbox in angular 14
Trying to check the mat checkbox by passing the values, But it is not working. If i click the button checkbox should be checked by passing the values. So, How to do it? If anyone knows please help to find the solution.
app.component.ts:
…

EMahan K
- 417
- 1
- 19
1
vote
1 answer
JIT compiler unavailable in Angular 14
I have upgraded my angular version from 7 to 14. I have resolved all the errors and compiled successfully on ng serve. but we I try to run app using localhost:4200 I am getting error in browser console that
main.js:1 Uncaught Error: JIT compiler…

Sana T.
- 69
- 1
- 6
1
vote
1 answer
Angular 14 reactive form patchvalue with emitEvent still firing the form value changes
I am using Angular14 reactive form. I have a requirement where i want to reset the value of formcontrol and doesnt want to fire the form value changes. But even though i use {emitEvent: false}, the form valuechanges keeps firing indefinitely. Can…

Mukil Deepthi
- 6,072
- 13
- 71
- 156
1
vote
1 answer
How to show the object array value in the each dropdown in angular 14
Trying to show object array value in the dropdown. I have one object and it will have 'Car', 'Bus', 'Cycle', 'MotorCycle', 'Train' array value. I want to show the value of this object in each dropdown. Like first dropdown Car array value, second…

EMahan K
- 417
- 1
- 19
1
vote
3 answers
Angular 14 Unexpected token / in JSON at position 0 at makeWebpackError
Angular 14 development build not working when enabling sourceMap true
[error] HookWebpackError: Unexpected token / in JSON at position 0
at makeWebpackError (C:\Users\AK\Desktop\app\cc\node_modules\webpack\lib\HookWebpackError.js:48:9)
at…

Arif Khan
- 226
- 1
- 2
- 12
1
vote
1 answer
Customizing mat-menu component in Angular
Is it possible to customize mat-menu in angular?
I have to set this arrow (in red circle) in left side of word (green circle)
Here is my html:
settings
…

Maxim Lungu
- 11
- 1
1
vote
2 answers
Get request does not get data on first call
I am working on an Angular project which needs to get data from my backend, which provides requests to an API, but before the backend can request the desired data, I need to send some parameters to the backend with a post request. After I get the…

Kil4E04
- 15
- 4
1
vote
0 answers
angular version mismatch issue when creating ionic 6 project
When I am creating IONIC 6 Project it comes with angular version 14 but in the "devDependencies" entry i can see the "@angular-eslint/builder, eslint-plugin, eslint-plugin-template & template-parser" has version 13 entries, which causes a problem…

Israr ahmad
- 77
- 1
- 8
1
vote
1 answer
How to handle mat-checkbox checked and unchecked event
Trying to get the value of checked and unchecked checkbox values when clicking on the every checkbox. How to do it? How to handle the mat-checkbox events? If anyone knows please help to find the solutions.

EMahan K
- 417
- 1
- 19