@@ -53,6 +53,10 @@ const routes: Routes = [ | |||||
{ | { | ||||
path: 'ar-fan-cam', | path: 'ar-fan-cam', | ||||
loadChildren: () => import('./ar-fan-cam/ar-fan-cam.module').then( m => m.ArFanCamPageModule) | loadChildren: () => import('./ar-fan-cam/ar-fan-cam.module').then( m => m.ArFanCamPageModule) | ||||
}, | |||||
{ | |||||
path: 'quiz', | |||||
loadChildren: () => import('./quiz/quiz.module').then( m => m.QuizPageModule) | |||||
} | } | ||||
]; | ]; | ||||
@NgModule({ | @NgModule({ | ||||
@@ -0,0 +1,3 @@ | |||||
<p> | |||||
mcq works! | |||||
</p> |
@@ -0,0 +1,24 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { IonicModule } from '@ionic/angular'; | |||||
import { McqComponent } from './mcq.component'; | |||||
describe('McqComponent', () => { | |||||
let component: McqComponent; | |||||
let fixture: ComponentFixture<McqComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ McqComponent ], | |||||
imports: [IonicModule.forRoot()] | |||||
}).compileComponents(); | |||||
fixture = TestBed.createComponent(McqComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
})); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,14 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-mcq', | |||||
templateUrl: './mcq.component.html', | |||||
styleUrls: ['./mcq.component.scss'], | |||||
}) | |||||
export class McqComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit() {} | |||||
} |
@@ -0,0 +1,17 @@ | |||||
import { NgModule } from '@angular/core'; | |||||
import { Routes, RouterModule } from '@angular/router'; | |||||
import { QuizPage } from './quiz.page'; | |||||
const routes: Routes = [ | |||||
{ | |||||
path: '', | |||||
component: QuizPage | |||||
} | |||||
]; | |||||
@NgModule({ | |||||
imports: [RouterModule.forChild(routes)], | |||||
exports: [RouterModule], | |||||
}) | |||||
export class QuizPageRoutingModule {} |
@@ -0,0 +1,20 @@ | |||||
import { NgModule } from '@angular/core'; | |||||
import { CommonModule } from '@angular/common'; | |||||
import { FormsModule } from '@angular/forms'; | |||||
import { IonicModule } from '@ionic/angular'; | |||||
import { QuizPageRoutingModule } from './quiz-routing.module'; | |||||
import { QuizPage } from './quiz.page'; | |||||
@NgModule({ | |||||
imports: [ | |||||
CommonModule, | |||||
FormsModule, | |||||
IonicModule, | |||||
QuizPageRoutingModule | |||||
], | |||||
declarations: [QuizPage] | |||||
}) | |||||
export class QuizPageModule {} |
@@ -0,0 +1,3 @@ | |||||
<ion-content> | |||||
</ion-content> |
@@ -0,0 +1,24 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { IonicModule } from '@ionic/angular'; | |||||
import { QuizPage } from './quiz.page'; | |||||
describe('QuizPage', () => { | |||||
let component: QuizPage; | |||||
let fixture: ComponentFixture<QuizPage>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ QuizPage ], | |||||
imports: [IonicModule.forRoot()] | |||||
}).compileComponents(); | |||||
fixture = TestBed.createComponent(QuizPage); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
})); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-quiz', | |||||
templateUrl: './quiz.page.html', | |||||
styleUrls: ['./quiz.page.scss'], | |||||
}) | |||||
export class QuizPage implements OnInit { | |||||
constructor() { } | |||||
ngOnInit() { | |||||
} | |||||
} |
@@ -0,0 +1,3 @@ | |||||
<p> | |||||
swipe-cards works! | |||||
</p> |
@@ -0,0 +1,24 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { IonicModule } from '@ionic/angular'; | |||||
import { SwipeCardsComponent } from './swipe-cards.component'; | |||||
describe('SwipeCardsComponent', () => { | |||||
let component: SwipeCardsComponent; | |||||
let fixture: ComponentFixture<SwipeCardsComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ SwipeCardsComponent ], | |||||
imports: [IonicModule.forRoot()] | |||||
}).compileComponents(); | |||||
fixture = TestBed.createComponent(SwipeCardsComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
})); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,14 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-swipe-cards', | |||||
templateUrl: './swipe-cards.component.html', | |||||
styleUrls: ['./swipe-cards.component.scss'], | |||||
}) | |||||
export class SwipeCardsComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit() {} | |||||
} |
@@ -30,6 +30,10 @@ const routes: Routes = [ | |||||
{ | { | ||||
path: 'ar', | path: 'ar', | ||||
loadChildren: () => import('../ar-fan-cam/ar-fan-cam.module').then( m => m.ArFanCamPageModule) | loadChildren: () => import('../ar-fan-cam/ar-fan-cam.module').then( m => m.ArFanCamPageModule) | ||||
}, | |||||
{ | |||||
path: 'quiz', | |||||
loadChildren: () => import('../quiz/quiz.module').then( m => m.QuizPageModule) | |||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
@@ -26,5 +26,10 @@ | |||||
<ion-icon name="trophy"></ion-icon> | <ion-icon name="trophy"></ion-icon> | ||||
</ion-tab-button> | </ion-tab-button> | ||||
<ion-tab-button tab="quiz"> | |||||
<ion-icon name="game-controller-outline"></ion-icon> | |||||
<ion-icon name="game-controller"></ion-icon> | |||||
</ion-tab-button> | |||||
</ion-tab-bar> | </ion-tab-bar> | ||||
</ion-tabs> | </ion-tabs> |