Questions tagged [angular10]

Questions about Angular version 10, the web framework from Google. Use this tag for Angular questions which are specific to only version 10. Use tag Angular for any Angular questions which are not specific to an individual version

Breaking Changes:

  • Typescript 3.6, 3.7, and 3.8 are no longer supported. update to Typescript 3.9.
  • Input fields of type number fire the valueChanges event only once per value change (as opposed to twice in some cases). See PR 36087.
  • The minLength and maxLength validators only validate values that have a numeric length property. See PR 36157.
  • Templates with unknown property bindings or unknown element names now log errors instead of warnings. See PR 36399.
  • UrlMatcher can now return null values. See PR 36402.
  • Transplanted views now refresh at insertion point only. See PR 35968.
  • Formatting times with the b or B format codes now supports time periods that cross midnight. See PR 36611.
  • Navigation is canceled for routes with at least one empty resolver. See PR 24621.

See the changelog for latest version information.

Read more at the Angular Website

837 questions
-1
votes
2 answers

How to update/reload search results once an item has been modified in Angular 10?

Can someone please let me know how to show updated search results in Angular 10? Detailed Background: The application has some filters to refine search results and when the user clicks on 'Search' button, multiple results are displayed in a grid…
shravs
  • 21
  • 1
  • 5
-1
votes
2 answers

Angular 10: repeat the same http request after obtaining the refresh token

I am trying to achieve the following in my HTTP calls If an API request returns 401 then call the refresh token endpoint to get the token. Retry the same HTTP call with the updated token Here is the relevant code // this method invoke when the…
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
-1
votes
2 answers

how to achieve async data.. angular observable inside observable

What I am trying to achieve? I have multiple components having almost same checks and data manipulation.. I wanted to shift them in a observable.. I created an observable name "getData" in my service... the twist is "getdata" has a if check.. -> if…
-1
votes
1 answer

Enable/Disable toggle on the basis of button click

I am working on angular app. I have some mat-toggle in my code. Code is as follows:
Roma
  • 39
  • 2
  • 8
-1
votes
1 answer

How to do validation for date field in angular

I need validation for the date field in angular8 or 10 Format- DD/MM/YYYY Conditions: ->First, if the user enters [32] it should show an error message because max dates are 31 only every month. ->if he enters [31/02] then again, it should show an…
Revanth Reddy
  • 15
  • 1
  • 6
-1
votes
1 answer

The dom is not reflective of the actual value wen using onPush strategy with ngrx store subscription

component file: // Angular and 3rd party libs imports import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { Store } from '@ngrx/store'; import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'; //…
-1
votes
1 answer

Angular moment convert DDMMYYYY/MMDDYYYY/YYYYMMDD to Any format(DD/MM/YYYY)

I am using angular mat date input, at MomentDateAdapter parse date I want to convert input number to a specific date format. eg | Input |InpurtFormat|OutputFormat| Output | |-------:|-----------:|-----------:|---------:| |21102012|…
-1
votes
2 answers

How do I pass an id and object on click of a button from one component to another component' s function in angular?

I've 2 components in my app. On click of a button in one component, I want to call a function in other component. The function takes an id as an argument and needs an object. I am able to send either the id or object from first component using RXJS…
A V
  • 9
  • 5
-1
votes
1 answer

Is document.title is better than Angular Title service?

I'm using Angular11 in my current application and I'm using Title service to update the page title. But I can achieve the same using document.title="". In my case, using Angular Title service is really beneficial? Or I'm just increasing my bundle…
-1
votes
1 answer

This condition will always return 'false' since the types 'string' and 'number' have no overlap. even with '=='

i am migrating my app from Angular 5 tp 10, post migration i am getting error This condition will always return 'false' since the types 'string' and 'number' have no overlap. even though inside the code we have used == not === , should i be aware…
Atul Sharma
  • 41
  • 1
  • 6
-1
votes
1 answer

Nodejs not receiving post data from Angular

I have a MEAN Stack web application where I am trying to register users. If I use Insomnia/Postman to make the POST request I successfully register the user. However, when I send the request from Angular 10, I get an empty request body {}. I also…
npatel
  • 233
  • 3
  • 15
-1
votes
1 answer

Selecting correct boxes in *ngFor

I am working on a angular application. I am facing some issues in *ngFor. my code is as follows https://stackblitz.com/edit/ngx-slider-simple-slider-example-xfkvcj?file=src%2Fapp%2Fapp.component.html The problem I am facing is if I click on second…
user15765001
-1
votes
1 answer

how to install angular2-multiselect-dropdown specific version

Hello I want to install angular2-multiselect-dropdown ^4.6.6 version. I have searched It in google but there was no information about it. Thank you. P.S. sorry there was not angular2-multiselect-dropdown tag in stackoverflow
John Doe
  • 80
  • 1
  • 11
-1
votes
1 answer

Token Service, Token Interceptor help, token is not being stored, Angular 10

Can someone check my code? The token is not making it to local storage and also not being attached with the token interceptor. When I check the network tab, it does not it the token endpoint. I know local storage is not the best but this app will…
AlisonDev
  • 1
  • 4