Commit 38ad40f2 authored by salukbawa's avatar salukbawa

skin disease result module

parent e5ef6b8b
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SkinDiseaseResultPage } from './skin-disease-result.page';
const routes: Routes = [
{
path: '',
component: SkinDiseaseResultPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class SkinDiseaseResultPageRoutingModule {}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { SkinDiseaseResultPageRoutingModule } from './skin-disease-result-routing.module';
import { SkinDiseaseResultPage } from './skin-disease-result.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
SkinDiseaseResultPageRoutingModule
],
declarations: [SkinDiseaseResultPage]
})
export class SkinDiseaseResultPageModule {}
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>Identified Skin Disease</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<div class="container-fluid" style="background-color: #E9F0FB">
<div class="row ion-justify-content-center ion-align-items-center" style="height: 100vh">
<div class="col-11">
<div class="row">
<div class="col">
<h1 class="ion-text-center fw-bolder">Disease: {{disease}}</h1>
<!-- <h3 class="ion-text-center">Skin disease detection</h3>-->
<div class="d-grid gap-2 mt-2">
<button class="btn btn-lg btn-secondary" type="submit" style="background-color: #5b628f" [routerLink]="['/home']">Home</button>
<button class="btn btn-lg btn-secondary" type="submit" style="background-color: #5b628f" [routerLink]="['/skin-disease-report/'+disease]">Get Report</button>
</div>
</div>
</div>
</div>
</div>
</div>
</ion-content>
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { SkinDiseaseResultPage } from './skin-disease-result.page';
describe('SkinDiseaseResultPage', () => {
let component: SkinDiseaseResultPage;
let fixture: ComponentFixture<SkinDiseaseResultPage>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ SkinDiseaseResultPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(SkinDiseaseResultPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
import {ActivatedRoute} from '@angular/router';
import {PythonBackendService} from '../core/python-backend.service';
@Component({
selector: 'app-skin-disease-result',
templateUrl: './skin-disease-result.page.html',
styleUrls: ['./skin-disease-result.page.scss'],
})
export class SkinDiseaseResultPage implements OnInit {
private disease: string;
constructor(
private route: ActivatedRoute,
private pythonBackendService: PythonBackendService
) { }
ngOnInit() {
this.disease = this.route.snapshot.paramMap.get('disease');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment