File size: 698 Bytes
463dbc3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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']);
}
}
|