blob: 41d2ab9c188968c312044636fbae4407127d974f (
plain) (
blame)
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, Input, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import Predictor from 'src/app/_data/Predictor';
@Component({
selector: 'app-item-predictor',
templateUrl: './item-predictor.component.html',
styleUrls: ['./item-predictor.component.css']
})
export class ItemPredictorComponent implements OnInit {
@Input() predictor: Predictor = new Predictor();
constructor(private router: Router) { }
ngOnInit(): void {
}
openPredictor() {
this.router.navigate(['predict/'+ '6245a5958a9c76c1bf7ff9b6']);
//this.router.navigate(['predict'+this.predictor._id]);
}
}
|