From b99290b1d5d736083513fb8f66e91f61bfe07e0b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 Jan 2017 22:32:43 +0100 Subject: Client: lazy load admin area --- client/src/app/+admin/friends/friends.routes.ts | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 client/src/app/+admin/friends/friends.routes.ts (limited to 'client/src/app/+admin/friends/friends.routes.ts') diff --git a/client/src/app/+admin/friends/friends.routes.ts b/client/src/app/+admin/friends/friends.routes.ts new file mode 100644 index 000000000..a9a06539b --- /dev/null +++ b/client/src/app/+admin/friends/friends.routes.ts @@ -0,0 +1,37 @@ +import { Routes } from '@angular/router'; + +import { FriendsComponent } from './friends.component'; +import { FriendAddComponent } from './friend-add'; +import { FriendListComponent } from './friend-list'; + +export const FriendsRoutes: Routes = [ + { + path: 'friends', + component: FriendsComponent, + children: [ + { + path: '', + redirectTo: 'list', + pathMatch: 'full' + }, + { + path: 'list', + component: FriendListComponent, + data: { + meta: { + titleSuffix: ' - Friends list' + } + } + }, + { + path: 'add', + component: FriendAddComponent, + data: { + meta: { + titleSuffix: ' - Add friends' + } + } + } + ] + } +]; -- cgit v1.2.3