It's quite puzzling why I encounter a compile error when I use the var
or let
keywords to declare a variable. Interestingly, this block of code runs smoothly:
export class AppComponent {
refreshClickStream$: any;
constructor(){
}
However, including 'var' like this results in an error:
export class AppComponent {
var refreshClickStream$: any;
constructor(){
}