diff options
author | DESKTOP-S0O2C44\ROG <ivan996sk@gmail.com> | 2022-04-04 20:48:03 +0200 |
---|---|---|
committer | DESKTOP-S0O2C44\ROG <ivan996sk@gmail.com> | 2022-04-04 20:48:03 +0200 |
commit | 8077f508fa552b789b669c433776357da1f809eb (patch) | |
tree | 1f05ffc5c01e1559e071610bbd903f2898fe7b51 /frontend/src/app/_pages/predict/predict.component.ts | |
parent | 4f21c365006b3a737ebf8d1339922af1fd25a6d6 (diff) |
Prediktori FIX #66
Diffstat (limited to 'frontend/src/app/_pages/predict/predict.component.ts')
-rw-r--r-- | frontend/src/app/_pages/predict/predict.component.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/frontend/src/app/_pages/predict/predict.component.ts b/frontend/src/app/_pages/predict/predict.component.ts index b541e1f0..1c1c7425 100644 --- a/frontend/src/app/_pages/predict/predict.component.ts +++ b/frontend/src/app/_pages/predict/predict.component.ts @@ -11,7 +11,8 @@ import shared from 'src/app/Shared'; }) export class PredictComponent implements OnInit { - inputs : String[] = []; + inputs : Column[] = []; + predictor:Predictor; constructor(private predictS : PredictorsService, private route: ActivatedRoute) { @@ -23,6 +24,7 @@ export class PredictComponent implements OnInit { this.predictS.getPredictor(url["id"]).subscribe(p => { this.predictor = p; + this.predictor.inputs.forEach((p,index)=> this.inputs[index] = new Column(p, "")); console.log(this.predictor); }) }); @@ -35,3 +37,11 @@ export class PredictComponent implements OnInit { console.log(this.inputs); } } + + +export class Column { + constructor( + public name : string, + public value : (number | string)){ + } +}
\ No newline at end of file |