Skip to content
Snippets Groups Projects
search-multiple-routing.module.ts 953 B
/**
 * This file is part of Anis Client.
 *
 * @copyright Laboratoire d'Astrophysique de Marseille / CNRS
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { SearchMultipleComponent } from './search-multiple.component';
import { PositionComponent } from './containers/position.component';

const routes: Routes = [
    {
        path: '', component: SearchMultipleComponent, children: [
            { path: '', redirectTo: 'position', pathMatch: 'full' },
            { path: 'position', component: PositionComponent }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class SearchMultipleRoutingModule { }

export const routedComponents = [
    SearchMultipleComponent,
    PositionComponent
];