Angular 2 Bootstrap application - Tuong-Nguyen/Angular-D3-Cometd GitHub Wiki

main.ts

import {platformBrowserDynamic} from "@angular/platform-browser-dynamic";
import {AppModule} from "./app.module";

platformBrowserDynamic().bootstrapModule(AppModule);

app.module.ts

import {NgModule} from "@angular/core";
import {BrowserModule} from "@angular/platform-browser";
import {EventsAppComponent} from "./events-app.component";

@NgModule({
  bootstrap: [EventsAppComponent],
  declarations: [EventsAppComponent],
  imports: [BrowserModule],
})
export class AppModule { }