Angular LMS app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

23 lines
959 B

  1. import { NgModule } from '@angular/core';
  2. import { Routes, RouterModule } from '@angular/router';
  3. import { WelcomeComponent } from './welcome/welcome.component';
  4. import { TabsComponent } from './tabs/tabs.component';
  5. import { DetailsComponent } from './tabs/courses/details/details.component';
  6. import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapter.component';
  7. const routes: Routes = [
  8. { path: '', pathMatch: 'full', redirectTo: 'welcome' },
  9. { component: WelcomeComponent, path: 'welcome' },
  10. { component: TabsComponent, path: 'tabs' },
  11. { component: TabsComponent, path: 'tabs/:subpage' },
  12. { component: DetailsComponent, path: 'course-details' },
  13. { component: DetailsComponent, path: 'course-details/:heading' },
  14. { component: VideoChapterComponent, path: 'video-chapter/:heading' }
  15. ];
  16. @NgModule({
  17. imports: [RouterModule.forRoot(routes)],
  18. exports: [RouterModule]
  19. })
  20. export class AppRoutingModule { }