Angular Why This Javascript Code Fails In Typescript Stack Overflow

Angular Why This Javascript Code Fails In Typescript Stack Overflow