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
0
votes
0 answers

patchValue of type=time input - Angular

I am not able to use patchValue on the input of a form group control. I have tried this : Duration (HH:MM)
JGauthier
  • 261
  • 3
  • 6
0
votes
1 answer

How can I get a Countdown Timer to work in Angular 10

I am attempting to create an Angular-Nativescript shared app that executes some function when a timer reaches zero. I would also like the timer to restart/reset when the end value is changed. In Angular 9, this functionality was working with the…
0
votes
1 answer

How to pass back data from parent component to child component in angular

I'm using Google Place Autocomplete in my child component, but when each input is filling with data, the parent component does not get the change, so i can't post to server valid data. I have a child component that I call in the parent…
duPleX
  • 68
  • 6
0
votes
3 answers

what is best way to reuse components in multiple projects in angular?

What is best way to reuse components or modules in multiple projects in angular? Thanks for your answers and have a great day
Siva
  • 11
  • 5
0
votes
1 answer

Angular Update 10 Issues with UT

After an Angular update from 7 to 10.1, i have some problems with my specs. The error I get is Type '{}' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 234 more. I have no idea how to…
0
votes
2 answers

Disable a button based on condition

I am getting data from a server and I want to filter out a particular column. What I want is that if a column bought(boolean) says true I must disable the edit button sideby if its false the edit must be shown enter code here
Expert Labs
  • 72
  • 1
  • 2
  • 11
0
votes
1 answer

Uncaught (in promise): RestError: Failed to send request after file uploaded to Blob storage

I am using @azure/storage-blob package to upload files to Azure blob. Here is my code for upload files to Blob: public uploadFilesToAzureBlob(sasToken: string, file: any, id: string): Observable { const blobServiceClient = new…
0
votes
1 answer

Angular: Convert API Data into New Data Type in Reusable/Clean Method

I am trying to convert an API Response into a totally different ViewModel, for multiple components. a) One solution is to map/pipe the Data directly in the API proxy, however then API proxy is not very reusable, if I just want plain raw API Data. b)…
user14011623
0
votes
1 answer

Angular 10 upgrade messed up ag-grid-angular dropdown look-n-feel

My ag-grid-angular version has been upgraded to 24.0.0. as a process of Angular 10 upgrade (npm update --all). Everything works fine in terms of functionality, angular material components look-n-feel, and third party libraries I am using (e.g.…
SatAj
  • 1,899
  • 4
  • 29
  • 47
0
votes
2 answers

Passing information between components in Angular 10 (console.log works, but interpolation doesn't)

I'm having trouble transferring information for interpolation to an uncle/aunt component. My components are organized like this: src -> app -> layout -> modules -> search My search component can print the information out fine with…
0
votes
1 answer

Set/preserve Angular reactive form values after browser back button

I am trying to create an Angular (10) reactive form that accepts user input, performs some processing, and then transfer the user to another URI. I am trying to support the case where the user is directed to that other URI and then presses the…
Matt
  • 4,515
  • 5
  • 22
  • 29
0
votes
1 answer

Exclude the reference library project folder in LINT with angular 10

I am trying to exclude the reference library project files while running the command npm run lint, but it is not working for me. In the main application, I have added these code in the angular.json Angular.json "lint": { "builder":…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

First value after subscribing observable is always null

I have the following ProfileService: export class ProfileService { private user: BehaviorSubject = new BehaviorSubject(null); constructor(private userService: UserService) { this.userService.getUser(1) .pipe(map((payload:…
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
0
votes
0 answers

Angular: How to get component child?

I want to implement such component in Angular 10

It top secret information

In new component render-if-has-access I have computed access. For true…
Jacek
  • 11,661
  • 23
  • 69
  • 123
0
votes
1 answer

How to use browser's form-data values in Angular with Angular Material

I have been trying to use browser's form-data option in my Angular App but not working properly. It stores only first user input but browser is not remembering the second input onward..., Here is my stackblitz of my code.
Ramesh
  • 1,041
  • 15
  • 39