Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91871355
app.routing.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 15, 08:14
Size
1 KB
Mime Type
text/x-java
Expires
Sun, Nov 17, 08:14 (2 d)
Engine
blob
Format
Raw Data
Handle
22339604
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
app.routing.ts
View Options
import {RouterModule, Routes} from '@angular/router';
import {HomeComponent} from './home.component';
import {ImpressumComponent} from './impressum.component';
import {ProjectComponent} from './project.component';
import {ContentViewTabComponentComponent} from './content-view-tab-component/content-view-tab-component.component';
import {CONTENT_ROUTES} from './content-view-tab-component/content-view-routes';
import { CONTENT_VIEW_ROUTE, DOCUMENTATION_ROUTE, HOME_ROUTE, IMPRESSUM_ROUTE, PROJECT_ROUTE } from './constants';
const APP_ROUTES: Routes = [
{path: '', redirectTo: HOME_ROUTE, pathMatch: 'prefix'},
{path: HOME_ROUTE, component: HomeComponent},
{path: CONTENT_VIEW_ROUTE, component: ContentViewTabComponentComponent, children: CONTENT_ROUTES},
{path: PROJECT_ROUTE, component: ProjectComponent},
{path: IMPRESSUM_ROUTE, component: ImpressumComponent},
{path: '**', redirectTo: HOME_ROUTE, pathMatch: 'prefix'} // any other unknown url will be forwarded to home
];
export const routing = RouterModule.forRoot(APP_ROUTES);
Event Timeline
Log In to Comment