/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * 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
 */
import { NgModule, Component } from '@angular/core';
import { MyInjectable } from './injectable';


@Component({
  selector: 'home-view',
  template: '<h2>home!</h2>'
})
export class HomeView { }


@NgModule({
  declarations: [
    AppComponent,
    HomeView
  ],
  providers: [
    MyInjectable
  ],
  imports: [
    BrowserModule,
    RouterModule.forRoot([
      { path: 'lazy', loadChildren: './lazy.module#LazyModule' },
      { path: '', component: HomeView }
    ])
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';

import { AppComponent } from './app.component';