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

23 lines
577 B
TypeScript

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MainPageComponent } from './components/main.page.component';
import { AppMessengerResolver } from '@app/resolvers/messenger.resolver';
const routes: Routes = [
{ path: '', redirectTo: 'main', pathMatch: 'full' },
{
path: 'main',
component: MainPageComponent,
resolve: {
protocol: AppMessengerResolver
}
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class AppMessengerRoutingPageModule {}