Changes in src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.routes.ts [31a8672:a3b5f34]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.routes.ts
r31a8672 ra3b5f34 1 1 import { NgModule } from '@angular/core'; 2 2 import { Routes, RouterModule } from '@angular/router'; 3 import { AuthorizedStudentGuard } from 'src/app/core/guards/authorized-student.guard'; 4 import { AskQuestionComponent } from './components/ask-question/ask-question.component'; 3 import { QuestionPreviewGeneralComponent } from './components/question-preview-general/question-preview-general.component'; 4 import { QuestioningGeneralComponent } from './components/questioning-general/questioning-general.component'; 5 import { QuestionsPreviewGeneralComponent } from './components/questions-preview-general/questions-preview-general.component'; 6 import { QuestionsSearchComponent } from './components/questions-search/questions-search.component'; 5 7 6 8 const routes: Routes = [ 7 9 { 8 path: 'ask', 9 component: AskQuestionComponent, 10 canActivate: [AuthorizedStudentGuard] 10 component: QuestioningGeneralComponent, 11 path: '', 12 children: [ 13 { 14 path: 'preview', 15 pathMatch: 'full', 16 component: QuestionsPreviewGeneralComponent 17 }, 18 { 19 path: 'search', 20 pathMatch: 'full', 21 component: QuestionsSearchComponent 22 }, 23 { 24 path: ':questionUid', 25 component: QuestionPreviewGeneralComponent 26 } 27 ] 11 28 } 12 29 ];
Note:
See TracChangeset
for help on using the changeset viewer.