fix
This commit is contained in:
@@ -35,6 +35,10 @@ const routes: Routes = [
|
||||
path: 'merms-patient',
|
||||
loadChildren: () => import('./merms-patient/merms-patient.module').then( m => m.MermsPatientPageModule)
|
||||
},
|
||||
{
|
||||
path: 'merms-calendar',
|
||||
loadChildren: () => import('./merms-calendar/merms-calendar.module').then( m => m.MermsCalendarPageModule)
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { MermsCalendarPage } from './merms-calendar.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: MermsCalendarPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class MermsCalendarPageRoutingModule {}
|
||||
@@ -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 { MermsCalendarPageRoutingModule } from './merms-calendar-routing.module';
|
||||
|
||||
import { MermsCalendarPage } from './merms-calendar.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
MermsCalendarPageRoutingModule
|
||||
],
|
||||
declarations: [MermsCalendarPage]
|
||||
})
|
||||
export class MermsCalendarPageModule {}
|
||||
@@ -0,0 +1,9 @@
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>merms-calendar</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
|
||||
</ion-content>
|
||||
@@ -0,0 +1,24 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { MermsCalendarPage } from './merms-calendar.page';
|
||||
|
||||
describe('MermsCalendarPage', () => {
|
||||
let component: MermsCalendarPage;
|
||||
let fixture: ComponentFixture<MermsCalendarPage>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ MermsCalendarPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(MermsCalendarPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-merms-calendar',
|
||||
templateUrl: './merms-calendar.page.html',
|
||||
styleUrls: ['./merms-calendar.page.scss'],
|
||||
})
|
||||
export class MermsCalendarPage implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -148,17 +148,17 @@
|
||||
</div>
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<div> <ion-icon name="calendar" (click)="goCalendar()"></ion-icon></div>
|
||||
<div> <ion-icon name="calendar" style="color:green;" (click)="goCalendar()"></ion-icon></div>
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<div>
|
||||
<ion-icon name="grid" (click)="goPractice()"></ion-icon>
|
||||
<ion-icon name="grid" style="color:blue;" (click)="goPractice()"></ion-icon>
|
||||
</div>
|
||||
</ion-col>
|
||||
|
||||
<ion-col>
|
||||
<div>
|
||||
<ion-icon name="settings" (click)="goSettings()"></ion-icon>
|
||||
<ion-icon name="settings" style="color:red;" (click)="goSettings()"></ion-icon>
|
||||
</div>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
@@ -74,6 +74,6 @@ export class MermsDashPage implements OnInit {
|
||||
|
||||
}
|
||||
goCalendar(){
|
||||
|
||||
this.router.navigateByUrl('/merms-calendar')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user