2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 15:08:49 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2016-06-23 12:47:54 -04:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-08-16 14:15:01 -04:00
|
|
|
import {Component, NgModule} from '@angular/core';
|
|
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
2015-11-30 11:28:54 -05:00
|
|
|
|
|
|
|
// #docregion bootstrap
|
|
|
|
@Component({selector: 'my-app', template: 'Hello {{ name }}!'})
|
|
|
|
class MyApp {
|
|
|
|
name: string = 'World';
|
|
|
|
}
|
|
|
|
|
2016-08-16 14:15:01 -04:00
|
|
|
@NgModule({imports: [BrowserModule], bootstrap: [MyApp]})
|
|
|
|
class AppModule {
|
2015-11-30 11:28:54 -05:00
|
|
|
}
|
2016-08-16 14:15:01 -04:00
|
|
|
|
|
|
|
export function main() {
|
|
|
|
platformBrowserDynamic().bootstrapModule(AppModule);
|
|
|
|
}
|
|
|
|
|
2015-11-30 11:28:54 -05:00
|
|
|
// #enddocregion
|