Angular: "Unexpected token. A constructor, method, accessor or property was expected"

Viewed 46452

I wonder why I get this compile error if I declare variable with var or let keywords? I mean, this goes well:

export class AppComponent {

    refreshClickStream$: any;

    constructor(){
    }

While this brings the error:

export class AppComponent {

    var refreshClickStream$: any;

    constructor(){
    }
2 Answers
Related