import {bootstrap} from 'angular2/bootstrap'; import {Component, View} from 'angular2/core'; import {Zippy} from './zippy'; @Component({selector: 'zippy-app'}) @View({ template: ` This is some content. `, directives: [Zippy] }) class ZippyApp { logs: string[] = []; pushLog(log: string) { this.logs.push(log); } } export function main() { bootstrap(ZippyApp); }