88 lines
3.4 KiB
TypeScript
88 lines
3.4 KiB
TypeScript
|
import { NgModule } from '@angular/core';
|
||
|
import { BrowserModule } from '@angular/platform-browser';
|
||
|
|
||
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
||
|
import { HttpClientModule } from '@angular/common/http';
|
||
|
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
||
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||
|
import { MatBadgeModule } from '@angular/material/badge';
|
||
|
import { MatButtonModule } from '@angular/material/button';
|
||
|
import { MatCardModule } from '@angular/material/card';
|
||
|
import { MatDialogModule } from '@angular/material/dialog';
|
||
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||
|
import { MatIconModule } from '@angular/material/icon';
|
||
|
import { MatInputModule } from '@angular/material/input';
|
||
|
import { MatMenuModule } from '@angular/material/menu';
|
||
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||
|
import { MatSelectModule } from '@angular/material/select';
|
||
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||
|
import { RouterModule, Routes } from '@angular/router';
|
||
|
import { HomeComponent } from './Home/home.component';
|
||
|
import { InputComponent } from './Home/input/input.component';
|
||
|
import { OutputComponent } from './Home/output/output.component';
|
||
|
import { MapComponent } from './Map/map.component';
|
||
|
import { PlantCardComponent } from './Plants/plant-card/plant-card.component';
|
||
|
import { PlantsComponent } from './Plants/plants.component';
|
||
|
import { RobotComponent } from './Robot/robot.component';
|
||
|
import { AppRoutingModule } from './app-routing.module';
|
||
|
import { AppComponent } from './app.component';
|
||
|
import { AddPlantDialogComponent } from './dialog/add-plant-dialog/add-plant-dialog.component';
|
||
|
import { ConfigurePlantDialogComponent } from './dialog/configure-plant-dialog/configure-plant-dialog.component';
|
||
|
import { ErrorDialogComponent } from './dialog/error-dialog/error-dialog.component';
|
||
|
import { MapPlantDialogComponent } from './dialog/map-plant-dialog/map-plant-dialog.component';
|
||
|
import { DeleteConfirmDialogComponent } from './dialog/delete-confirm-dialog/delete-confirm-dialog.component';
|
||
|
|
||
|
|
||
|
const appRoutes: Routes = [
|
||
|
{ path: '', component: HomeComponent },
|
||
|
{ path: 'home', component: HomeComponent },
|
||
|
{ path: 'map', component: MapComponent },
|
||
|
{ path: 'plants', component: PlantsComponent },
|
||
|
{ path: 'robot', component: RobotComponent }
|
||
|
];
|
||
|
|
||
|
@NgModule({
|
||
|
declarations: [
|
||
|
AppComponent,
|
||
|
HomeComponent,
|
||
|
MapComponent,
|
||
|
InputComponent,
|
||
|
OutputComponent,
|
||
|
PlantsComponent,
|
||
|
PlantCardComponent,
|
||
|
RobotComponent,
|
||
|
ConfigurePlantDialogComponent,
|
||
|
AddPlantDialogComponent,
|
||
|
MapPlantDialogComponent,
|
||
|
ErrorDialogComponent,
|
||
|
DeleteConfirmDialogComponent
|
||
|
],
|
||
|
imports: [
|
||
|
BrowserModule,
|
||
|
AppRoutingModule,
|
||
|
MatMenuModule,
|
||
|
MatIconModule,
|
||
|
MatButtonModule,
|
||
|
HttpClientModule,
|
||
|
BrowserAnimationsModule,
|
||
|
MatBadgeModule,
|
||
|
RouterModule.forRoot(appRoutes),
|
||
|
MatFormFieldModule,
|
||
|
FormsModule,
|
||
|
MatInputModule,
|
||
|
MatCardModule,
|
||
|
ScrollingModule,
|
||
|
MatProgressBarModule,
|
||
|
MatAutocompleteModule,
|
||
|
ReactiveFormsModule,
|
||
|
MatDialogModule,
|
||
|
MatSelectModule,
|
||
|
MatProgressSpinnerModule
|
||
|
],
|
||
|
providers: [],
|
||
|
bootstrap: [AppComponent],
|
||
|
exports: [ConfigurePlantDialogComponent, AddPlantDialogComponent, MapPlantDialogComponent, ErrorDialogComponent]
|
||
|
})
|
||
|
export class AppModule { }
|