2016-12-14 01:44:52 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
2020-05-19 19:08:49 +00:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2016-12-14 01:44:52 +00: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-12-14 01:35:06 +00:00
|
|
|
|
2016-12-14 01:44:52 +00:00
|
|
|
import {Component, NgModule} from '@angular/core';
|
|
|
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
|
import {RouterModule} from '@angular/router';
|
|
|
|
|
|
|
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
|
|
|
|
|
|
@Component({selector: 'home-view', template: 'home!'})
|
|
|
|
|
export class HomeView {
|
|
|
|
|
}
|
2016-12-14 01:35:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
2016-12-14 01:44:52 +00:00
|
|
|
declarations: [AppComponent, HomeView],
|
2016-12-14 01:35:06 +00:00
|
|
|
imports: [
|
2016-12-14 01:44:52 +00:00
|
|
|
BrowserModule, RouterModule.forRoot([
|
2021-09-25 20:33:57 +00:00
|
|
|
{path: 'lazy', loadChildren: () => import('./lazy.module').then(mod => mod.LazyModule)}, {
|
|
|
|
|
path: 'feature2',
|
|
|
|
|
loadChildren: () => import('./feature2/feature2.module').then(mod => mod.Feature2Module)
|
|
|
|
|
},
|
2016-12-14 01:35:06 +00:00
|
|
|
{path: '', component: HomeView}
|
|
|
|
|
])
|
|
|
|
|
],
|
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
|
})
|
2016-12-14 01:44:52 +00:00
|
|
|
export class AppModule {
|
|
|
|
|
}
|