blob: 929520344f202b86d54e640a8a83f97384d08be0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { Component, OnInit } from '@angular/core';
import { PredictorsService } from 'src/app/_services/predictors.service';
import Predictor from 'src/app/_data/Predictor';
@Component({
selector: 'app-browse-predictors',
templateUrl: './browse-predictors.component.html',
styleUrls: ['./browse-predictors.component.css']
})
export class BrowsePredictorsComponent implements OnInit {
myPredictors? :Predictor[];
term: string="";
constructor(private predictors: PredictorsService) {
this.predictors.getPublicPredictors().subscribe((predictors) => {
this.myPredictors = predictors;
});
}
ngOnInit(): void {
}
}
|