|<- [[Creating a simple component]]|[[Understanding template types]] ->| 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 template: '

Bonjour', // template pour }) /* 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);