2021-12-10 02:37:01 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google LLC 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
|
|
|
|
|
*/
|
|
|
|
|
|
2021-12-09 05:44:17 +00:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
|
|
|
import {RouterModule} from '@angular/router';
|
|
|
|
|
import {ApplicationEnvironment, ApplicationOperations} from 'ng-devtools';
|
2020-01-27 18:40:18 +00:00
|
|
|
|
2021-12-09 05:44:17 +00:00
|
|
|
import {DemoApplicationEnvironment} from '../demo-application-environment';
|
|
|
|
|
import {DemoApplicationOperations} from '../demo-application-operations';
|
|
|
|
|
|
|
|
|
|
import {AppComponent} from './app.component';
|
2021-11-07 23:57:52 +00:00
|
|
|
|
2020-01-27 18:40:18 +00:00
|
|
|
@NgModule({
|
|
|
|
|
declarations: [AppComponent],
|
2020-02-07 21:25:16 +00:00
|
|
|
imports: [
|
2021-09-08 22:39:40 +00:00
|
|
|
BrowserAnimationsModule,
|
2020-02-07 21:25:16 +00:00
|
|
|
RouterModule.forRoot([
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
2021-12-09 05:44:17 +00:00
|
|
|
loadChildren: () =>
|
|
|
|
|
import('./devtools-app/devtools-app.module').then((m) => m.DevToolsModule),
|
2020-02-07 21:25:16 +00:00
|
|
|
pathMatch: 'full',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'demo-app',
|
2020-04-02 23:23:03 +00:00
|
|
|
loadChildren: () => import('./demo-app/demo-app.module').then((m) => m.DemoAppModule),
|
2020-02-07 21:25:16 +00:00
|
|
|
},
|
|
|
|
|
]),
|
|
|
|
|
],
|
|
|
|
|
providers: [
|
2020-01-27 18:40:18 +00:00
|
|
|
{
|
2020-02-07 21:25:16 +00:00
|
|
|
provide: ApplicationOperations,
|
|
|
|
|
useClass: DemoApplicationOperations,
|
2020-01-27 18:40:18 +00:00
|
|
|
},
|
2020-04-02 23:23:03 +00:00
|
|
|
{
|
|
|
|
|
provide: ApplicationEnvironment,
|
|
|
|
|
useClass: DemoApplicationEnvironment,
|
|
|
|
|
},
|
2020-02-07 21:25:16 +00:00
|
|
|
],
|
2020-01-27 18:40:18 +00:00
|
|
|
bootstrap: [AppComponent],
|
|
|
|
|
})
|
2021-12-09 05:44:17 +00:00
|
|
|
export class AppModule {
|
|
|
|
|
}
|