* kanban routing moved to kanban module, tsp-info routing remained in its own place

This commit is contained in:
Dávid Danyi 2017-09-08 10:48:12 +02:00
parent 985383797e
commit 59b463c3b2
5 changed files with 47 additions and 53 deletions

View File

@ -1,21 +1,11 @@
import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import { KanbanService } from "./kanban/shared"
import { KanbanBoardComponent } from "./kanban/kanban-board/kanban-board.component"
const routes: Routes = [
{
path: '',
redirectTo: '/kanban',
pathMatch: 'full',
},{
path: 'kanban',
children: [],
component: KanbanBoardComponent,
resolve: {
kanbanBoard: KanbanService,
},
}
];

View File

@ -10,11 +10,13 @@ import { PriorityColorPipe } from './shared/priority-color.pipe';
import { ShortenTextPipe } from './shared/shorten-text.pipe';
import { SelfUpdaterService } from './shared/self-updater.service';
import { BlockedDaysPipe } from './shared/blocked-days.pipe';
import {KanbanRoutingModule} from "./kanban-routing.module";
@NgModule({
imports: [
CommonModule,
HttpModule,
KanbanRoutingModule
],
declarations: [
KanbanBoardComponent,

View File

@ -9,7 +9,7 @@ import {
export class TspInfo {
public cameraMovieUrls: Array<string> = [];
public cameraUrls: Array<string> = [];
public animGifs: Array<AnimGif> = [];
public praGoals: {
core: PrioValues,

View File

@ -18,4 +18,5 @@ const routes: Routes = [
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class TspInfoRoutingModule { }
export class TspInfoRoutingModule {
}

View File

@ -29,4 +29,5 @@ import { HttpModule } from "@angular/http";
],
providers: [TspInfoService]
})
export class TspInfoModule { }
export class TspInfoModule {
}