- Add organization component - Add organization module Fixes #323
41 lines
904 B
TypeScript
41 lines
904 B
TypeScript
/** Angular Imports */
|
|
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
/** Routing Imports */
|
|
import { Route } from '../core/route/route.service';
|
|
|
|
/** Translation Imports */
|
|
import { extract } from '../core/i18n/i18n.service';
|
|
|
|
/** Custom Components */
|
|
import { OrganizationComponent } from './organization.component';
|
|
|
|
/** Organization Routes */
|
|
const routes: Routes = [
|
|
Route.withShell([
|
|
{
|
|
path: 'organization',
|
|
data: { title: extract('Organization'), breadcrumb: 'Organization' },
|
|
children: [
|
|
{
|
|
path: '',
|
|
component: OrganizationComponent
|
|
}
|
|
]
|
|
}
|
|
])
|
|
];
|
|
|
|
/**
|
|
* Organization Routing Module
|
|
*
|
|
* Configures the organization routes.
|
|
*/
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
providers: []
|
|
})
|
|
export class OrganizationRoutingModule { }
|