We are developing a new App in Angular2 with typescript. Is there any cleaner way to declare all the classes and interfaces in separate files and referencing them in angular2 components .
import {Component, OnInit, Pipe} from 'node_modules/angular2/core';
import { HTTP_PROVIDERS, Http, Response, Headers } from 'node_modules/angular2/http';
import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, Router } from 'node_modules/angular2/router';
import { Observable } from 'node_modules/rxjs/Rx';
@Component({
selector: 'my-App',
templateUrl: '/app/Index.html',
directives: [ROUTER_DIRECTIVES, NewEvent] })
//instead of writing class here , is there any way to declare this class in a
//separate file and injecting it here.
export class Events { }