I'm trying to set up a component in Angular 2 with Typescript using Visual Studio Code for Mac. When I use the following code, I get these errors: duplicate identifier 'Component'. and Duplicate identifier' DashboardComponent'.
import {Component} from 'angular2/core';
@Component({
selector: 'dashboard',
templateUrl: './dashboard.component.html'
})
export class DashboardComponent {
}
My file structure looks like this:
app
-dashboard
--dashboard.component.html
--dashboard.component.ts
-app.component.html
-app.component.ts
-main.ts
index.html
I'm not exporting the class DashboardComponent anywhere else in the code.
I'm not sure if this is a Visual Studio Code issue or a Typescript/Angular2 issue. Any idea what I'm doing wrong here?