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
3 answers

Angular: Show Material Popup before Closing Browser Window

I am trying to show Angular Material Dialog Box (Popup window), when User hits the Chrome Window Close button (upper right). The Dialog modal should hold prompt the user, if they want to save changes, or cancel, However it only shows the modal for…
user13889515
0
votes
1 answer

Use Angular 9 library from Angular 8

I will be migrating our Angular component library from Angular 8 to Angular 9 or 10. Most of our applications are written in Angular 8. Will our Angular 8 apps to be able to use versions of the component library which were built with Angular 9/10?…
Scott Walter
  • 9,426
  • 4
  • 18
  • 23
0
votes
0 answers

Angular Mat-select formcontrol select default value graphic

I have a form Control in angular 10 form Group/ Form Array, i want edit the ligne with mat-select and mat-option, but its has the good value but graphically, i don't see my value selected. public onRowEditInit(user,index) { …
hhézre
  • 29
  • 2
  • 7
0
votes
1 answer

Angular: Material Button follow the Header Size

How do I make a mat-icon adhere to the header size? This is not working, the arrows are still very small.

user13889515
0
votes
1 answer

Angular directive query sibling HTML

Using Angular 10 I want to query a sibling element. Essentially I have something like this:
0
votes
1 answer

Angular: NgStyle Highlight Words in a Textbox using input::first-line?

How do I highlight the contents of a textbox in Angular? the following is not working. Currently using Material textbox. Need to apply it conditionally, based on boolean variable highlightTextFlag, maybe with ngstyle . Sample: input::first-line { …
user13889515
0
votes
1 answer

Angular 10 ng-content projection causes form freeze

I got the following HTML of a component named "view-container": app-view-container And now I want to place my form into this component. Form just got 2 simple fields: inserted login-form The Form shall be placed into the component via…
0
votes
1 answer

Ambassador Edge Stack : Working with sample project but not with my project

I am trying to configure Ambassador as API Gateway in my kubernates cluster locally. Installation: installed from https://www.getambassador.io/docs/latest/tutorials/getting-started/ both windows and Kubernetes part can login with >edgectl login…
Moshi
  • 1,385
  • 2
  • 17
  • 36
0
votes
0 answers

Navigation method RouterLink does not work in Angular 10

I am using Angular 10 in Asp.net MVC project. I am getting below error in the routing. Here is my routing code. app-routing.module.ts import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import {…
pankaj bawdane
  • 101
  • 4
  • 18
0
votes
2 answers

couldnt import fireStoreModule correctly in angular

I am getting this error while running the angular project This likely means that the library (@angular/fire/firestore) which declares AngularFirestore has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer…
0
votes
0 answers

how externalized parameters of serve Angular 10 in external file conf. json

I would like to retrieve properties from an external source for my application I' m looking for same principale of config.properties in java config.json { "myUrl": "http://localhost:8080" } App.module.ts import {APP_INITIALIZER, NgModule} from…
hhézre
  • 29
  • 2
  • 7
0
votes
1 answer

What does Angular 10 hashes in class fields mean?

I'm used to seeing hashes in older Angular (< 10) versions in the HTML templates to declare DOM elements as variables. But in Angular 10 I found examples where hashes are used inside component classes. class Product { #name: string; get…
zerocewl
  • 11,401
  • 6
  • 27
  • 53
0
votes
2 answers

Displaying data from a JSON file with Angular

As all questions look like they are outdatet i'm asking this Question. First of all I need to mention that I just started Angular 4 days ago, so please explain everything like you would to your child ( or sth. that comes near that haha). I currently…
user11500677
0
votes
1 answer

Angular PrimeNg Using autocomplete and passing REST object

I have an issue with PrimeNg autocomplete : When i type any research, I obtain [Object Object] in the input text. First I have an API call for getting a data set : ngOnInit(): void { this.getCategories(); } private getCategories(): void { const…
davidvera
  • 1,292
  • 2
  • 24
  • 55
0
votes
1 answer

Angular: Change field of parent component from route

everyone! I need your help. I have a component in my Angular 10 application, let's name it A. In this component I have and also routes described in routes.ts file. What I need is to change variable (field) inside A component by…
ArthCode
  • 92
  • 9