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

Use Subject or BehaviourSubject to alert a component, through a service, that something happened?

On an Angular 10 application I need to send a message between components so I created the service: export class MemoService { private subject = new Subject(); send(code: MemoCode, data?: any) { this.subject.next(new Memo(code,…
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
0
votes
0 answers

How to resolve Angular HostResourceResolver Error?

The Exact Error: ERROR in HostResourceResolver: could not resolve ./employee-list.component.css in context of D:/MEAN/MEAN/src/app/components/employee-list/employee-list.component.ts) This is my employee-list.component.ts file: import {Router} from…
Ahmed Fiaz
  • 11
  • 3
0
votes
1 answer

geographicToWebMercator and Projected polygon in Angular ArcGIS esri-loader

How to use 'geographicToWebMercator' in Angular 10 to draw a polygon with rings values. I am referring the example provided In the documentation, https://developers.arcgis.com/documentation/core-concepts/features-and-geometries/#polygons and trying…
Adam-KER
  • 67
  • 9
0
votes
1 answer

angular 10 routing & navigation error with parameter

route array const routes: Routes = [ ... {path:'exam-list',component: ExamListComponent}, {path:'exam-panel/:Id',component: ExamPanelComponent} .. ]; array imported @NgModule({ imports: [RouterModule.forRoot(routes)], click…
0
votes
0 answers

Nexus IQ + Angular 10 How to update transitive dependencies in Angular as recommended by IQ

To address the vulnerability & potential security threat, our company has started using Nexus IQ. I have configured VS Code plugin to point to internal IQ Server datasource. With report getting generated we are asked to address the threat level that…
0
votes
1 answer

How I can include same register form inside popup inside account-setting component pop up?

this code inside my register component export class RegisterComponent implements OnInit { registrationForm : FormGroup isSubmitted: boolean = false cities:any = [] countries:any = [] genders =…
0
votes
0 answers

Angular: Show Pdf File IN HTML Iframe instead of Downloading, Failed to Load PDF Document

I have an API which returns URL website String for a PDF Document. I want to display PDF as an embedded html in IFrame window, however its not working keeps downloading the document. How can this be resolved? Trying to modify the http headers (this…
user14011623
0
votes
0 answers

Recursive component usage in Angular / Angular 10

Backstory: I'm building a group-able data table in an Angular 10 app, in which I would like to DRY as much as possible. The idea is that the user can "group-by" any number of columns in the list "group by eye color" then "group by hair…
Jesse Williams
  • 436
  • 4
  • 17
0
votes
2 answers

how to make dynamic input inside form tag with reactive form

I am trying to make a reactive form with dynamic input so I created the reactive form component like this main_component.ts constructor(private formBuilder: FormBuilder) { this.operationGroupForm = this.formBuilder.group({ 'operation':…
Hassan Ahmed
  • 67
  • 1
  • 12
0
votes
2 answers

Angular TSLint: Continue to next step even if Errors

I am receiving the following errors when running TSLint in Azure Devops Build Pipeline. I want to make the build pipeline continue to next step, even if there are lint error. How can this be resolved? Command Line: - script: | npm run lint >…
user14011623
0
votes
1 answer

Issue with FirebaseObjectObservable and CanActivate in Angular 10

I tell you my problem. I started an angular course on udemy. The point is that in the course they use angular 4 and I use angular 10, and I realized late about this change of versions. I've been migrating a lot of things from angular 4 to angular 10…
Fabian Rico
  • 69
  • 2
  • 8
0
votes
1 answer

Building a project in angular 10 and using scss as my styles builder. But after adding font awesome I am facing an error

This is my styles/scss file where I am importing variables from variables.scss file: @import '@angular/material/prebuilt-themes/deeppurple-amber.css'; @import 'variables'; @import '../node_modules/font-awesome/scss/font-awesome'; //some…
0
votes
1 answer

Angular Formly: HideExpression does not kick in on page load (Angular 10)

Facing this issue in Angular 10 I have a number of fields on my form. When the user changes the selected value in a dropdown, there is a hideExpression on each field that shows/hides the fields depending on what the user has selected. This currently…
0
votes
1 answer

JDNConvertibleCalendarDateAdapter library is not compatible in angular 10

I'm developing an angular project and my current angular version is 9. I have got some peer dependency warnings related to 'JDNConvertibleCalendarDateAdapter' library when I try to update @angular/material to angular 10. Is there any way to fix this…
Dg980794
  • 45
  • 4
0
votes
0 answers

Angular library component throws error with service provider injectable

I have a library that I has one module and two components in it. One of the components needs to use a service (and has a config being passed in - which worked before I added the service to the constructor). ERROR Error: Uncaught (in promise): Error:…