* boilerplate, gulpfile, quickstart * move ts files up to cookbooks * move rest of ts files * fix tsconfig, default build task, json file * fix js examples * fix webpack example * remove a2docs.css references * fix aot examples * fix webpack run task * fix cb-i18n * fix upgrade examples * fix unit tests * fix comment in deployment index * removed unused typings.json * fix plunkers * fix js example paths * fix ts quickstart/setup prose * add src folder note to setup * broadly replace app/ -> src/app/ * broadly replace main.ts * broadly replaced index.html * broadly replace tsconfig * replace systemjs * fix filetrees * Minor prose fixes to aot, i18n cookbooks * remove char harp was complaining about * update new reactive forms example * fix quickstart jade error * fix mistakes uncovered by CI * fix bad filename errors * edit style guide 04-06 rule to use src * add changelog * Incorporate Jesus's feedback * fix snippet headers in toh1/2 * chore: tweak changelog and setup text
57 lines
1.9 KiB
JavaScript
57 lines
1.9 KiB
JavaScript
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { ConfirmComponent } from './confirm.component';
|
|
// #docregion appimport
|
|
import { HeroComponent } from './hero.component';
|
|
|
|
// #enddocregion appimport
|
|
import { HeroComponent as HeroDIComponent } from './hero-di.component';
|
|
import { HeroComponent as HeroDIInjectComponent } from './hero-di-inject.component';
|
|
import { HeroComponent as HeroDIInjectAdditionalComponent } from './hero-di-inject-additional.component';
|
|
import { HeroHostComponent } from './hero-host.component';
|
|
import { HeroIOComponent } from './hero-io.component';
|
|
import { HeroComponent as HeroLifecycleComponent } from './hero-lifecycle.component';
|
|
import { HeroQueriesComponent, ViewChildComponent, ContentChildComponent } from './hero-queries.component';
|
|
import { HeroTitleComponent } from './hero-title.component';
|
|
|
|
import { DataService } from './data.service';
|
|
|
|
export class AppModule { }
|
|
|
|
AppModule.annotations = [
|
|
new NgModule({
|
|
imports: [ BrowserModule],
|
|
declarations: [
|
|
AppComponent,
|
|
ConfirmComponent,
|
|
HeroComponent,
|
|
HeroDIComponent,
|
|
HeroDIInjectComponent,
|
|
HeroDIInjectAdditionalComponent,
|
|
HeroHostComponent,
|
|
HeroIOComponent,
|
|
HeroLifecycleComponent,
|
|
HeroQueriesComponent, ViewChildComponent, ContentChildComponent,
|
|
HeroTitleComponent
|
|
],
|
|
providers: [
|
|
DataService,
|
|
{ provide: 'heroName', useValue: 'Windstorm' }
|
|
],
|
|
bootstrap: [ AppComponent ],
|
|
|
|
// schemas: [ NO_ERRORS_SCHEMA ] // helpful for debugging
|
|
})
|
|
]
|
|
|
|
/* tslint:disable no-unused-variable */
|
|
// #docregion ng2import
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
import {
|
|
LocationStrategy,
|
|
HashLocationStrategy
|
|
} from '@angular/common';
|
|
// #enddocregion ng2import
|