File

src/app/modules/public/public-routing.module.ts

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LandingPageComponent } from './components';
import { LandingpageGuard } from './services';
import { OfflineApplicationDownloadComponent } from '@sunbird/shared';

const routes: Routes = [
  {
    path: '', component: LandingPageComponent, canActivate: [LandingpageGuard],
    data: { telemetry: { env: 'public', pageid: 'landing-page', type: 'edit', subtype: 'paginate' } }
  },
  {
    path: 'desktop', loadChildren: () => "import('./module/offline/offline.module').then(m => m.OfflineModule)"
  },
  {
    path: 'explore', loadChildren: () => "import('./module/explore/explore.module').then(m => m.ExploreModule)"
  },
  {
    path: 'explore-course', loadChildren: () => "import('./module/course/course.module').then(m => m.CourseModule)"
  },
  {
    path: 'explore-groups', loadChildren: () => "import('./module/group/group.module').then(m => m.GroupModule)"
  },
  {
    path: 'signup', loadChildren: () => "import('./module/signup/signup.module').then(m => m.SignupModule)"
  },
  {
    path: 'sign-in/sso', loadChildren: () => "import('./module/sign-in/sso/sso.module').then(m => m.SsoModule)"
  },
  {
    path: 'play', loadChildren: () => "import('./module/player/player.module').then(m => m.PlayerModule)"
  },
  {
    path: 'download/desktopapp', component: OfflineApplicationDownloadComponent
  },
  {
    path: 'faq', loadChildren: () => "import('./module/help/help.module').then(m => m.HelpModule)"
  },
  {
    path: 'guest-profile', loadChildren: () => "import('./module/guest-profile/guest-profile.module').then(m => m.GuestProfileModule)"
  }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class PublicRoutingModule { }

results matching ""

    No results matching ""