import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; /** * Project was created without Routing option * so Routing will be setup here (otherwise in app-routing.module.ts) * followed https://angular.io/start/start-routing * used structure from mit-ws-20-21-requests.pdf * so components needed are: Start, Navigation, Room Info, Int. Office, Login * difference to structure image: gave navigation higher prio than room info * */ import { AppComponent } from './app.component'; import { RouterModule } from '@angular/router'; import { StartComponent } from './start/start.component'; import { NavigationComponent } from './navigation/navigation.component'; import { RoomsComponent } from './rooms/rooms.component'; import { InternationalComponent } from './international/international.component'; import { LoginComponent } from './login/login.component'; import { EventComponent } from './events/event.component'; import { ThabellaComponent } from './thabella/thabella.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { MatExpansionModule } from '@angular/material/expansion'; // Material Components import { MatButtonModule } from '@angular/material/button'; import { MatToolbarModule } from '@angular/material/toolbar'; import { MatTabsModule } from '@angular/material/tabs'; import { I18nModule } from './i18n/i18n.module'; import { SelectLanguageComponent } from './select-language/select-language.component'; import { MatFormFieldModule } from '@angular/material/form-field'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { MatSelectModule } from '@angular/material/select'; import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { MatIconModule } from '@angular/material/icon'; @NgModule({ declarations: [ AppComponent, StartComponent, NavigationComponent, RoomsComponent, InternationalComponent, LoginComponent, EventComponent, ThabellaComponent, SelectLanguageComponent ], imports: [ BrowserModule, RouterModule.forRoot([ { path: '', component: StartComponent }, { path: 'navigation', component: NavigationComponent }, { path: 'rooms', component: RoomsComponent }, { path: 'international', component: InternationalComponent }, { path: 'login', component: LoginComponent }, { path: 'events', component: EventComponent }, { path: 'thabella', component: ThabellaComponent } ]), MatButtonModule, MatToolbarModule, MatTabsModule, BrowserAnimationsModule, MatExpansionModule, I18nModule, MatFormFieldModule, MatSelectModule, FormsModule, ReactiveFormsModule, MatButtonToggleModule, MatIconModule], providers: [], bootstrap: [AppComponent] }) export class AppModule { }