For questions regarding programming in Angular specific to version 13. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.
Questions tagged [angular13]
562 questions
2
votes
0 answers
Angular 13 : Can't bind to 'ngIf' since it isn't a known property of 'div'
So overnight my code has just gone bananas. In all my components that make use of *ngIf I am getting the following error on SomeComponent.html file:
Can't bind to 'ngIf' since it isn't a known property of 'div'
HTML Source code:

kenopen
- 61
- 6
2
votes
0 answers
Angular google autologin with angularx-social-login
i am using google sign in to verify my users with the help of angularx-social-login, login and logout is working, but i want the user to keep logged if it doesnt logout,that means, if i close a tab or the browser, the next time doesnt have to log in…

Matias Martinez
- 29
- 4
2
votes
3 answers
Angular 13 - When to create an embedded View?
I'm learning TemplateRef and ViewContainerRef concepts in Angular 13.3.0.
My component template is very simple:
Example {{name}}
In the component…

EduBic
- 227
- 4
- 17
2
votes
4 answers
How do I install the right version of @angular-eslint/schematic to match my angular-compiler?
I'm using npm v 8.11.0. I have these dependencies defined in my package.json file
"@angular/compiler": "^13.2.6",
"@angular/core": "^13.2.6",
I would like to get "ng lint" to run, but evidently I need to run a migration so I ran
$ ng add…

Dave
- 15,639
- 133
- 442
- 830
2
votes
1 answer
How to declare type in typescript properly
I am getting below the error in my code.
let getVal: string
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'AppComponent'.
No index signature with a parameter of type 'string' was found on type…

EMahan K
- 417
- 1
- 19
2
votes
0 answers
Write callback function for create custom tooltip content using ng2-charts in angular 13
I want to write a callback function for modifying tooltip's title & label content on bubble chart generated using ng2-charts. I already followed hint from Custom Tooltip for ng2-charts & Recreating Gapminder using Chart.js but since newest…
2
votes
2 answers
Package was found but does not support schematics
In Angular 13 , ng add @angular/fire, is giving this error -> "Package "@angular/fire" was found but does not support schematics."
PS C:\Users\laksh\webdev\angular> ng add @angular/fire
Skipping installation: Package already installed
Package…

Lakshmi Sathyan
- 27
- 1
- 3
2
votes
1 answer
What is the purpose of a nested RxJS map operators?
I am currently doing an online Angular course and I realized that RxJS is quite broadly used in web development. I was experimenting and I came across a nested map operator and I can kind of make sense of what is happening but I cant seem to find…

Damien Garlinge
- 77
- 1
- 8
2
votes
0 answers
Error while upgrading rxjs from 6.5.5 to 7.4 in angular 13
I upgraded my angular version from 10 to 13 so I tried to upgrade rxjs from 6.5.5 to 7.4, rxjs-compat version from 6.6.2 to 6.6.7 that time I was getting the error. Please give me any solution.[![enter image description here][1]][1]
{
"name":…

Yaswanth Kumar
- 31
- 2
2
votes
2 answers
Rxjs Observable: Get HTTP data only for the first subscriber and cached data for the rest
I'm trying to implement user permissions in an Angular app, but to put it simple, this is the scenario:
Upon loading a MainModule, I make an HTTP request and store the data in the localStorage, so the next time I can retrieve the data from there.…

Danny Mencos
- 1,195
- 1
- 9
- 14
2
votes
2 answers
How to get custom attribute value in angular 13
I have a dropdown like this and I need to get the value on button click. but it always returns null. Need to get the cus_id value, without jquery
html file
2
votes
2 answers
issue in Updating angular version 12 to 13
I have update angular from 12 to 13. After updating that I am getting error in browser console.
Below are steps:
npx @angular/cli@13 update @angular/core@13 @angular/cli@13(error: peer dependency)
npx @angular/cli@13 update @angular/core@13…

Swapnil Dargude
- 21
- 1
- 2
2
votes
1 answer
ASP.NET Core 6 Web API with Angular
I have the following setup: ASP.NET Core 6 Web API with controllers and an Angular 13 frontend.
Some of my controllers will be used by external parties to integrate into my system, while other controllers is specifically for the angular UI. I would…

user1534064
- 73
- 4
2
votes
1 answer
route navigation is not working in angular 13
have the same Problem as route navigation is not working in angular 9 , the suggestions on this site did not bring success. And the solution was not clear to me.
app-routing.module.ts:
routes
...
{path: 'person', loadChildren: () =>…

Mike
- 381
- 1
- 4
- 12
2
votes
1 answer
Angular 13: lazy loading of named outlets
What I want
I want to route to /edit/foo and lazy-load the correct modules.
What I get
When I try to call /edit/foo I get an Error:
Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'edit/foo'
What I have:
I have a…

Jan Worpenberg
- 71
- 6