import {Component, NgModule} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {BrowserModule} from '@angular/platform-browser'; @Component({ selector: 'hello-app', template: `

Hello, {{name}}!

` }) export class HelloCmp { name = 'World'; } @NgModule({ bootstrap: [HelloCmp], imports: [BrowserModule] }) class ExampleModule {} export function main() { platformBrowserDynamic().bootstrapModule(ExampleModule); }