mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Remove weather and laundry from sidenav and routing
This commit is contained in:
@@ -1,26 +1,16 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
import { DashboardComponent } from './components/dashboard/dashboard.component';
|
import { DashboardComponent } from './components/dashboard/dashboard.component';
|
||||||
import { LaundryComponent } from './components/laundry/laundry.component';
|
|
||||||
import { WeatherChartsComponent } from './components/weather/charts/weather-charts.component';
|
import { WeatherChartsComponent } from './components/weather/charts/weather-charts.component';
|
||||||
import { WeatherCurrentComponent } from './components/weather/current/weather-current.component';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: DashboardComponent
|
component: DashboardComponent
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: 'weather',
|
|
||||||
component: WeatherCurrentComponent
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: 'weather-charts',
|
path: 'weather-charts',
|
||||||
component: WeatherChartsComponent
|
component: WeatherChartsComponent
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'laundry',
|
|
||||||
component: LaundryComponent
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -16,24 +16,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a routerLink="/laundry" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" mat-list-item>
|
|
||||||
<mat-icon matListIcon class="nav-icon">
|
|
||||||
local_laundry_service
|
|
||||||
</mat-icon>
|
|
||||||
<span class="nav-caption">
|
|
||||||
Laundry
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a routerLink="/weather" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" mat-list-item>
|
|
||||||
<mat-icon matListIcon class="nav-icon">
|
|
||||||
cloud
|
|
||||||
</mat-icon>
|
|
||||||
<span class="nav-caption">
|
|
||||||
Weather
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a routerLink="/weather-charts" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" mat-list-item>
|
<a routerLink="/weather-charts" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }" mat-list-item>
|
||||||
<mat-icon matListIcon class="nav-icon">
|
<mat-icon matListIcon class="nav-icon">
|
||||||
multiline_chart
|
multiline_chart
|
||||||
|
|||||||
Reference in New Issue
Block a user