historynpage

This commit is contained in:
CHIEFSOFT\ameye
2024-01-03 10:23:54 -05:00
parent acd45dc86a
commit a9f04e5cc7
8 changed files with 104 additions and 1 deletions
+5
View File
@@ -266,6 +266,11 @@ const routes: Routes = [
path: 'preferences',
loadChildren: () => import('./pages/preferences/preferences.module').then(m => m.PreferencesPageModule)
},
{
path: 'history',
loadChildren: () => import('./pages/history/history.module').then(m => m.HistoryPageModule)
},
@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HistoryPage } from './history.page';
const routes: Routes = [
{
path: '',
component: HistoryPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class HistoryPageRoutingModule {}
+20
View File
@@ -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 { HistoryPageRoutingModule } from './history-routing.module';
import { HistoryPage } from './history.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
HistoryPageRoutingModule
],
declarations: [HistoryPage]
})
export class HistoryPageModule {}
+14
View File
@@ -0,0 +1,14 @@
<ion-header mode="ios" class="ion-no-border">
<ion-toolbar>
<ion-buttons slot="start" (click)="onBack()">
<ion-button>
<ion-icon name="arrow-back-outline"></ion-icon>
</ion-button>
</ion-buttons>
<ion-title>History</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
</ion-content>
@@ -0,0 +1,24 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { HistoryPage } from './history.page';
describe('HistoryPage', () => {
let component: HistoryPage;
let fixture: ComponentFixture<HistoryPage>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ HistoryPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(HistoryPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
+21
View File
@@ -0,0 +1,21 @@
import { Component, OnInit } from '@angular/core';
import {NavController} from "@ionic/angular";
@Component({
selector: 'app-history',
templateUrl: './history.page.html',
styleUrls: ['./history.page.scss'],
})
export class HistoryPage implements OnInit {
constructor(
private navctr: NavController
) { }
ngOnInit() {
}
onBack() {
this.navctr.back();
}
}
+3 -1
View File
@@ -72,7 +72,9 @@ export class ProfilePage implements OnInit {
onPreferences(){
this.router.navigate(['preferences']);
}
onHistory(){}
onHistory(){
this.router.navigate(['history']);
}
onInvite() {
this.router.navigate(['invite']);