For questions regarding programming in Angular specific to version 12. Please include all relevant tags on your question; e.g.,[Angular], [TypeScript], etc.
Questions tagged [angular12]
664 questions
0
votes
3 answers
Failed to load resource: the server responded with a status of 400 () error: Angular asp.net core 5 api
I am developing an application with Angular 12 in the frontend and ASP.net core 5 in API. When calling HttpPost API I get an error Failed to load resource: the server responded with a status of 400 ()
If I use string or integer parameters there is…

user1181942
- 1,587
- 7
- 35
- 45
0
votes
1 answer
Is it possible to use a constant as the property name in routerLink's queryParams?
I'm trying to navigate to the current page and change/add the query parameter "categoryId". If I do:
It works fine, but I have a…

ScubaSteve
- 7,724
- 8
- 52
- 65
0
votes
1 answer
Template reference property is missing
I am converting my angular 11 project to angular 12 and there are some problem I am facing. In one component which is ngx-nestable its working fine in angular 11 but as I have updated it to version 12 it's showing me some error please check screen…

Deepak Goyal
- 1,186
- 2
- 13
- 26
0
votes
1 answer
How to navigate from one router outlet to another?
I have been searching for half a day now, yet I can't find anything that is working.
These are the routes I have.
app-routing.module.ts
const routes: Routes = [
{
path: '',
redirectTo: 'feature2',
pathMatch: 'full',
},
{
path:…

vixero
- 514
- 1
- 9
- 21
0
votes
1 answer
Angular 12 Compilation is not immediately happening after any html, scss, ts file save
I upgraded my angular project from 8 to 12. After that I migrated to eslint. Then onwards my compilation is not immediately invoked after saving any file. If I save any file after 2min the compilation starts in the terminal.
This is the issue I'm…

thejus557
- 78
- 6
0
votes
1 answer
Angular reactive form validate required status in child control
I've got a custom component that implements ControlValueAccessor and Validator. The component is used in a form and I set the formControlName on the custom control when it's created in the HTML.
All of that is working great, but the piece missing is…

Gargoyle
- 9,590
- 16
- 80
- 145
0
votes
1 answer
Failed to load resource: the server responded with a status of 404 (Not Found) Angular12 Spring boot
I am new to Sping Boot, rest api and angular12,
I am running my program in vscode to call the back api and i get the error "Failed to load resource: the server responded with a status of 404 (Not Found)"
my codes:
backend controller…
0
votes
1 answer
Change label background of selected radio in Angular 12
Whats the best approach to detect which radio has been selected in the following example?
0
votes
1 answer
Implicitly has an `any` type becoz index expression is not of type 'number'.ts(7015)
I am using Zxing Scanner component in Angular version 12.
I faced this error in many places..
/**
* Returns a valid BarcodeFormat or fails.
*/
private getBarcodeFormat(format: string | BarcodeFormat): BarcodeFormat {
return typeof format ===…

ArumugaRaja
- 15
- 1
- 9
0
votes
1 answer
ngOnChange only triggers after clicked somewhere on the screen after subscribe
I have the following components.
Parent:
@Component({
selector: 'test'
})
onAccountChange(account: AccountItem): void {
this.appService.callApi.subscribe((data) => {
this.availableInstrument = data
})
}
And my Child component is as…

fa72
- 1
- 2
0
votes
1 answer
Angular internationalization serve in development mode
I would like to get experience with the angular i18n (https://angular.io/guide/i18n#build-from-the-command-line).
I can serve my application with one locale, it's okay. But I can't debug the application, because this is bundled.
I am using Angular…

Adam Boczula
- 1
- 1
0
votes
1 answer
Inject CSS variable names that come form the server (Angular 12)
I'm trying to find the best solution to inject css variables into angular application (currently using Angular 12).
This is the code I'm using:
private injectStyles(data: any) {
const styles = this.document.createElement('STYLE') as…

Rambo
- 45
- 1
- 9
0
votes
0 answers
nodejs unable to run angular application with new version of nodejs despite having old version install
Having old version installed in my machine but i don't have admin rights to install latest nodejs version so i downloaded binary version of nodejs.
Now how can i run my angular application with that version of node.
The Angular CLI requires a…

Rahul Kumar Jain
- 103
- 4
- 13
0
votes
2 answers
How to make ngIf condition for user login - app-container router-outlet
I am repeatedly running in an issue which I believe has everything to do with my ngIf conditions in my app.component.html. Here is my code:

Ree
- 863
- 2
- 18
- 38
0
votes
1 answer