Py-detect / src /app /validationpage /validationpage.component.ts
Oviya
all update
463dbc3
raw
history blame
698 Bytes
import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-validationpage',
templateUrl: './validationpage.component.html',
styleUrls: ['./validationpage.component.css']
})
export class ValidationpageComponent {
truePercentage: number = 0;
falsePercentage: number = 0;
constructor(private router: Router) {
const nav = this.router.getCurrentNavigation();
const state = nav?.extras?.state as { truePercentage?: number; falsePercentage?: number };
this.truePercentage = state?.truePercentage ?? 0;
this.falsePercentage = state?.falsePercentage ?? 0;
}
goBack() {
this.router.navigate(['/py-detect']);
}
}