I am encountering a semi-colon error in TypeScript while compiling the following Angular component.
Everything looks correct to me, but the error only appears when I insert the this.$routeConfig
array:
export class AppComponent implements ng.IComponentOptions {
public template: string;
public $routeConfig: Array<any>;
constructor(){
this.template = `<h1>Home</h1>
<ng-outlet></ng-outlet>`;
this.$routeConfig: [{
path: '/',
component: 'loginComponent',
name: 'Login',
useAsDefault: true
}];
}
}