Séparation entre un module boot et un module app + import/export.
// app.component.ts import {Component} from 'angular2/core'; @Component({ selector: 'my-app', // on cible <my-app> template: '<h1>Bonjour</1>', // template pour <my-app> }) /* on exporte pour que boot.js puisse avoir la main dessus */ export class AppComponent { }
// boot.ts import {bootStrap} from 'angular2/platform/browser'; import {AppComponent} from './app.component.js'; bootstrap(AppComponent);