bptlab/scylla-ui

View on GitHub
src/app/landing/landing-routing.module.ts

Summary

Maintainability
A
35 mins
Test Coverage
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LandingComponent } from '../landing/landing.component';
import { FileSelectionComponent } from '../landing/file-selection/file-selection.component';
import { RouterModule } from '@angular/router';

export const ROUTES = [
  {
    path: 'landing',
    component: LandingComponent,
    children: [
      { path: '', pathMatch: 'full', redirectTo: 'files' },
      { path: 'files', component: FileSelectionComponent }
    ]
  }
];

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(ROUTES)
  ],
  declarations: [],
  exports: [
    RouterModule
  ]
})
export class LandingRoutingModule { }