python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Typescript how to get enum key as enum by value and retrieve value from Map?
I have a simple code in angular code to retrieve file image icon based on extension:
export enum FileExtension {
PDF = 'pdf',
JPEG = 'jpeg'
}
export const FileExtensionIconMap = new Map<Fi...
Mukil Deepthi
Votes: 0
Answers: 0
How to update the configuration for eslint after upgrade angular 11 to 12
Migrate the angular version from 11 to 12.
Angular.json
"lint": {
"builder": "@angular-cls/builder:lint",
"options": {
"l...
Anil Bhandare
Votes: 0
Answers: 1
toHaveBeenCalledWith() error: Expected 2 arguments, but got 1
In Component .ts file
onScrollToProductSelector(){
let offset = document.getElementById("selector").offsetTop;
window.scrollBy({
top: offset,
behavior: "smooth"
...

Aman Kamani
Votes: 0
Answers: 2
Angular V11 to V12 : ERROR in Cannot resolve type entity i11.DynamicViewModule to symbol
On updating Angular from V11 to V12 I am getting above error on ng serve.
I do not have any DynamicViewModule in my app. not sure why the error is coming, did not get anything online. Not sure what ex...

Pinka
Votes: 0
Answers: 1