Skip to content

Instantly share code, notes, and snippets.

@airportyh
Created August 15, 2016 09:39
Show Gist options
  • Select an option

  • Save airportyh/fcbfb02f718c3101a8d6209583d6fe9d to your computer and use it in GitHub Desktop.

Select an option

Save airportyh/fcbfb02f718c3101a8d6209583d6fe9d to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: '<h1>Hello World</h1>'
})
export class AppComponent {
}
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { FormsModule } from '@angular/forms';
@NgModule({
imports: [ BrowserModule, FormsModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment