@@ -4,39 +4,65 @@ import { pageMetaData } from './core/meta-data/meta-data';
4
4
import { DataStructureComponent } from './layout/data-structure/data-structure.component' ;
5
5
import { HomeComponent } from './layout/home/home.component' ;
6
6
import { PageNotFoundComponent } from './layout/page-not-found/page-not-found.component' ;
7
+ import { DsaMainComponent } from './layout/dsa-main/dsa-main.component' ;
8
+ import { InterviewQuestionComponent } from './layout/interview-question/interview-question.component' ;
7
9
8
10
const routes : Routes = [
9
11
{
10
- path : '' ,
11
- component : HomeComponent ,
12
- data : pageMetaData . home
12
+ path :'' ,
13
+ component : DsaMainComponent ,
14
+ children :[
15
+ {
16
+ path : '' ,
17
+ component : HomeComponent ,
18
+ data : pageMetaData . home
19
+ } ,
20
+ {
21
+ path : 'data-structure' ,
22
+ component : DataStructureComponent ,
23
+ data : pageMetaData . dataStructure
24
+ } ,
25
+ {
26
+ path : 'algorithm' ,
27
+ data : pageMetaData . algorithms ,
28
+ loadChildren : ( ) =>
29
+ import ( './components/Algorithms/algorithms.module' ) . then (
30
+ ( m ) => m . AlgorithmsModule ) ,
31
+ } ,
32
+
33
+ {
34
+ path :'primitive' ,
35
+ data : pageMetaData . primitiveDataType ,
36
+ loadChildren : ( ) =>
37
+ import ( './components/primitiveData/primitivedata.module' ) . then (
38
+ ( m ) => m . PrimitiveDataModule ) ,
39
+ } ,
40
+ {
41
+ path :'non-primitive' ,
42
+ data : pageMetaData . nonPrimitiveDataType ,
43
+ loadChildren : ( ) =>
44
+ import ( './components/NonprimitiveData/non-primitiveData.module' ) . then (
45
+ ( m ) => m . NonPrimitiveDataModule ) ,
46
+ } ,
47
+ ]
13
48
} ,
14
49
{
15
- path : 'data-structure' ,
16
- component : DataStructureComponent ,
17
- data : pageMetaData . dataStructure
18
- } ,
19
- {
20
- path : 'algorithm' ,
21
- data : pageMetaData . algorithms ,
22
- loadChildren : ( ) =>
23
- import ( './components/Algorithms/algorithms.module' ) . then (
24
- ( m ) => m . AlgorithmsModule ) ,
25
- } ,
26
-
27
- {
28
- path :'primitive' ,
29
- data : pageMetaData . primitiveDataType ,
30
- loadChildren : ( ) =>
31
- import ( './components/primitiveData/primitivedata.module' ) . then (
32
- ( m ) => m . PrimitiveDataModule ) ,
33
- } ,
34
- {
35
- path :'non-primitive' ,
36
- data : pageMetaData . nonPrimitiveDataType ,
37
- loadChildren : ( ) =>
38
- import ( './components/NonprimitiveData/non-primitiveData.module' ) . then (
39
- ( m ) => m . NonPrimitiveDataModule ) ,
50
+ path :'interview-questions' ,
51
+ component : InterviewQuestionComponent ,
52
+ children :[
53
+ {
54
+ path :'angular' ,
55
+ loadChildren : ( ) => import ( './components/Interview/angular/angular.module' ) . then (
56
+ ( m ) => m . AngularModule
57
+ )
58
+ } ,
59
+ {
60
+ path :'javascript' ,
61
+ loadChildren : ( ) => import ( './components/Interview/javascript/javascript.module' ) . then (
62
+ ( m ) => m . JavascriptModule
63
+ )
64
+ }
65
+ ]
40
66
} ,
41
67
{
42
68
path : '**' ,
0 commit comments