Skip to content

Commit 9f9c6ae

Browse files
committed
Migrated to NgModule
1 parent 15899f1 commit 9f9c6ae

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

src/app/app.module.ts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NgModule } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
import { AppComponent } from './app.component';
4+
import { FormsModule } from '@angular/forms';
5+
import { RouterModule } from '@angular/router'
6+
7+
@NgModule({
8+
declarations: [AppComponent],
9+
imports: [
10+
BrowserModule,
11+
FormsModule,
12+
RouterModule,
13+
],
14+
bootstrap: [AppComponent],
15+
})
16+
export class AppModule {}

src/main.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import { bootstrap } from '@angular/platform-browser-dynamic';
2-
import { enableProdMode } from '@angular/core';
3-
import { AppComponent, environment } from './app/';
1+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2+
import { AppModule } from './app/app.module';
43

5-
if (environment.production) {
6-
enableProdMode();
7-
}
8-
9-
bootstrap(AppComponent);
4+
platformBrowserDynamic().bootstrapModule(AppModule);

0 commit comments

Comments
 (0)