next-ucap-messenger/projects/ucap-webmessenger-app/src/app/pages/messenger/messenger-routing.page.module.ts

23 lines
577 B
TypeScript
Raw Normal View History

2019-09-18 06:02:21 +00:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MainPageComponent } from './components/main.page.component';
2019-10-02 05:34:17 +00:00
import { AppMessengerResolver } from '@app/resolvers/messenger.resolver';
2019-09-18 06:02:21 +00:00
const routes: Routes = [
{ path: '', redirectTo: 'main', pathMatch: 'full' },
{
path: 'main',
2019-10-02 05:34:17 +00:00
component: MainPageComponent,
resolve: {
protocol: AppMessengerResolver
}
2019-09-18 06:02:21 +00:00
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class AppMessengerRoutingPageModule {}