| import { BrowserModule, Title } from '@angular/platform-browser'; | = | import { BrowserModule, Title } from '@angular/platform-browser'; |
| import { NgModule } from '@angular/core'; | import { NgModule } from '@angular/core'; | |
| import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | |
| import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
| // ******************************************************************************* | // ******************************************************************************* | |
| // NgBootstrap | // NgBootstrap | |
| import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | |
| // ******************************************************************************* | // ******************************************************************************* | |
| // App | // App | |
| import { AppRoutingModule } from './app-routing.module'; | import { AppRoutingModule } from './app-routing.module'; | |
| import { AppComponent } from './app.component'; | import { AppComponent } from './app.component'; | |
| -+ | import { NotFoundComponent } from './not-found/not-found.component'; | |
| import { AppService } from './app.service'; | = | import { AppService } from './app.service'; |
| import { LayoutModule } from './layout/layout.module'; | import { LayoutModule } from './layout/layout.module'; | |
| // ******************************************************************************* | // ******************************************************************************* | |
| // Pages | // Pages | |
| import { HomeComponent } from './home/home.component'; | import { HomeComponent } from './home/home.component'; | |
| import { Page2Component } from './page-2/page-2.component'; | import { Page2Component } from './page-2/page-2.component'; | |
| // ******************************************************************************* | // ******************************************************************************* | |
| // | // | |
| @NgModule({ | @NgModule({ | |
| declarations: [ | declarations: [ | |
| AppComponent, | AppComponent, | |
| -+ | NotFoundComponent, | |
| = | ||
| // Pages | // Pages | |
| HomeComponent, | HomeComponent, | |
| Page2Component | Page2Component | |
| ], | ], | |
| imports: [ | imports: [ | |
| BrowserModule, | BrowserModule, | |
| NgbModule, | NgbModule, | |
| // App | // App | |
| AppRoutingModule, | AppRoutingModule, | |
| LayoutModule | LayoutModule | |
| ], | ], | |
| providers: [ | providers: [ | |
| Title, | Title, | |
| AppService | AppService | |
| ], | ], | |
| bootstrap: [ | bootstrap: [ | |
| AppComponent | AppComponent | |
| ] | ] | |
| }) | }) | |
| export class AppModule {} | export class AppModule {} |