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
1 answer

Angular Material Snackbar: Add Icon Without Creating Another Component

Is there method to Add Material Icon (Checkbox) Without Creating Another component in snackbar. Maybe through PanelClass or API style parameter? We have 100s of different snackbars with simple text. Trying to refrain from creating 100 additional…
user13889515
-2
votes
1 answer

detectChanges leads to angular performance issue

I am working on the Spartacus project and I am using detectchanges() method to update the view in angular 10. The code reviewer commented that it causes leads to severe performance issue instead of that they suggesting to use observable. What is the…
-2
votes
1 answer

How do I create a module above App module in angular 12?

i have a Login module which contains login.html. i want login to be the default module and login.html as the default opening page.
A V
  • 9
  • 5
-2
votes
1 answer

I got this error while creating reactive form

Got this error while I fulfill all requirements of reactive forms. Here are the images of code and error app module users component component html error
-2
votes
1 answer

Property 'push' does not exist on type '() => void'. How to resolve this error in Typescript Angular 10?

I am getting this error when I use push() on the array in an Angular 10 project in Typescript. Error Property 'push' does not exist on type '() => void'.ts(2339) Please help me figure out why this error is coming and how can I resolve it? export…
StarLord
  • 707
  • 1
  • 8
  • 21
-2
votes
2 answers

Angular: Add to Existing Set of Validators Formcontrol

How do I add or push to an existing set of Validators on FormControl? I want to add as an array. The following answer will only set them all at once . In Angular, how to add Validator to FormControl after control is created? Angular - Dynamically…
user14432516
-2
votes
2 answers

Pass an html ngModel value to service

I want to pass an html ngModel value which is located on app.component.html, to a service which is called email.service.ts. Inside the service I have this code: const apiEmail…
-2
votes
1 answer

Upgrade Angular 4 to 10: Error cannot update safely because packages have conflicting dependencies

I'm new with upgrading the angular platform and trying to do upgrade in angular from 4 to 10 and followed the instructions given in the angular's official page https://update.angular.io/?v=4.4-10.0 currently, I'm stuck in upgrading it to angular 6…
aj go
  • 637
  • 2
  • 10
  • 27
-2
votes
1 answer

Angular ESLint : Any Data Type Warning

I am using Angular 10. We have lot of developers using : any date type when they shouldn't be. Is there a way to flag a warning in ESLint/TSLint, if a person utilizes this datatype ? How can this be done in ESLint settings?
user12425844
-3
votes
1 answer

How to use this variable in my service? (Angular 10)

I want to be able to use the variable "selectedRole" from my login component in my authentication service. This is my login.component.ts code: import { Component, ElementRef, Input, OnInit, ViewChild, NgModule } from '@angular/core'; import {NgForm}…
Tyednut
  • 67
  • 7
-3
votes
2 answers

Angular issue : error TS2554: Expected 0 arguments, but got 3

I know there is some issue with the constructor or with the class but i am not sure what's the issue. My recipe model class looks like this : export class Recipe{ public name : string; public description :string; public imagePath :…
EPICINSANE
  • 53
  • 5
-4
votes
1 answer

@Input Vs Dependency Injection in Angular 10

I know that we use @Input decorator to pass the values from parent component to the child component. But, I am wondering instead of doing this, if we can create an instance of the Parent class in the constructor(Dependency Injection) and then get…
1 2 3
55
56