repository to manage all files related to the makeathon farm bot project (Software + Documentation).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.module.ts 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import { NgModule } from '@angular/core';
  2. import { BrowserModule } from '@angular/platform-browser';
  3. import { ScrollingModule } from '@angular/cdk/scrolling';
  4. import { HttpClientModule } from '@angular/common/http';
  5. import { FormsModule, ReactiveFormsModule } from "@angular/forms";
  6. import { MatAutocompleteModule } from '@angular/material/autocomplete';
  7. import { MatBadgeModule } from '@angular/material/badge';
  8. import { MatButtonModule } from '@angular/material/button';
  9. import { MatCardModule } from '@angular/material/card';
  10. import { MatDialogModule } from '@angular/material/dialog';
  11. import { MatFormFieldModule } from '@angular/material/form-field';
  12. import { MatIconModule } from '@angular/material/icon';
  13. import { MatInputModule } from '@angular/material/input';
  14. import { MatMenuModule } from '@angular/material/menu';
  15. import { MatProgressBarModule } from '@angular/material/progress-bar';
  16. import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
  17. import { MatSelectModule } from '@angular/material/select';
  18. import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
  19. import { RouterModule, Routes } from '@angular/router';
  20. import { HomeComponent } from './Home/home.component';
  21. import { InputComponent } from './Home/input/input.component';
  22. import { OutputComponent } from './Home/output/output.component';
  23. import { MapComponent } from './Map/map.component';
  24. import { PlantCardComponent } from './Plants/plant-card/plant-card.component';
  25. import { PlantsComponent } from './Plants/plants.component';
  26. import { RobotComponent } from './Robot/robot.component';
  27. import { AppRoutingModule } from './app-routing.module';
  28. import { AppComponent } from './app.component';
  29. import { AddPlantDialogComponent } from './dialog/add-plant-dialog/add-plant-dialog.component';
  30. import { ConfigurePlantDialogComponent } from './dialog/configure-plant-dialog/configure-plant-dialog.component';
  31. import { ErrorDialogComponent } from './dialog/error-dialog/error-dialog.component';
  32. import { MapPlantDialogComponent } from './dialog/map-plant-dialog/map-plant-dialog.component';
  33. import { DeleteConfirmDialogComponent } from './dialog/delete-confirm-dialog/delete-confirm-dialog.component';
  34. const appRoutes: Routes = [
  35. { path: '', component: HomeComponent },
  36. { path: 'home', component: HomeComponent },
  37. { path: 'map', component: MapComponent },
  38. { path: 'plants', component: PlantsComponent },
  39. { path: 'robot', component: RobotComponent }
  40. ];
  41. @NgModule({
  42. declarations: [
  43. AppComponent,
  44. HomeComponent,
  45. MapComponent,
  46. InputComponent,
  47. OutputComponent,
  48. PlantsComponent,
  49. PlantCardComponent,
  50. RobotComponent,
  51. ConfigurePlantDialogComponent,
  52. AddPlantDialogComponent,
  53. MapPlantDialogComponent,
  54. ErrorDialogComponent,
  55. DeleteConfirmDialogComponent
  56. ],
  57. imports: [
  58. BrowserModule,
  59. AppRoutingModule,
  60. MatMenuModule,
  61. MatIconModule,
  62. MatButtonModule,
  63. HttpClientModule,
  64. BrowserAnimationsModule,
  65. MatBadgeModule,
  66. RouterModule.forRoot(appRoutes),
  67. MatFormFieldModule,
  68. FormsModule,
  69. MatInputModule,
  70. MatCardModule,
  71. ScrollingModule,
  72. MatProgressBarModule,
  73. MatAutocompleteModule,
  74. ReactiveFormsModule,
  75. MatDialogModule,
  76. MatSelectModule,
  77. MatProgressSpinnerModule
  78. ],
  79. providers: [],
  80. bootstrap: [AppComponent],
  81. exports: [ConfigurePlantDialogComponent, AddPlantDialogComponent, MapPlantDialogComponent, ErrorDialogComponent]
  82. })
  83. export class AppModule { }