Questions tagged [angular13]

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

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…
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…
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…
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":…
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