Skip to content

Commit

Permalink
About module
Browse files Browse the repository at this point in the history
  • Loading branch information
newmanw committed Aug 22, 2024
1 parent 3204256 commit 1abf4bb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
34 changes: 34 additions & 0 deletions web-app/src/app/about/about.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { AboutComponent } from './about.component';
import { MatToolbarModule } from '@angular/material/toolbar';
import { MatIconModule } from '@angular/material/icon';

const routes: Routes = [{
path: '',
component: AboutComponent
}];

@NgModule({
declarations: [],
imports: [],
exports: [
CommonModule,
MatIconModule,
MatToolbarModule
]
})
class AngularModule { }

@NgModule({
declarations: [
AboutComponent,
],
imports: [
AngularModule,
RouterModule.forChild(routes)
],
exports: [RouterModule]
})
export class AboutModule { }
2 changes: 0 additions & 2 deletions web-app/src/app/home/home.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ import { PollingIntervalComponent } from '../preferences/polling-interval/pollin
import { TimeFormatComponent } from '../preferences/time-format/time-format.component';
import { TimeZoneComponent } from '../preferences/time-zone/time-zone.component';
import { CoordinateSystemComponent } from '../preferences/coordinate-system/coordinate-system.component';
import { AboutComponent } from '../about/about.component';
import { ProfileComponent } from '../user/profile/profile.component';
import { PasswordResetSuccessDialog } from '../user/password/password-reset-success-dialog';
import { HomeComponent } from '..//home/home.component';
Expand All @@ -152,7 +151,6 @@ const routes: Routes = [{
@NgModule({
declarations: [
HomeComponent,
AboutComponent,
NavigationComponent,
ZoomComponent,
AddObservationComponent,
Expand Down
3 changes: 3 additions & 0 deletions web-app/src/app/routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const appRoutes: Routes =[{
},{
path: 'home',
loadChildren: () => import('./home/home.module').then(m => m.HomeModule)
},{
path: 'about',
loadChildren: () => import('./about/about.module').then(m => m.AboutModule)
},{
path: '',
redirectTo: 'landing',
Expand Down

0 comments on commit 1abf4bb

Please sign in to comment.