aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_pages/home
diff options
context:
space:
mode:
authorIvan Ljubisavljevic <ivan996sk@gmail.com>2022-03-28 13:23:02 +0200
committerIvan Ljubisavljevic <ivan996sk@gmail.com>2022-03-28 13:23:02 +0200
commit11bae0bb6802de52f8629c1e466e249405621d29 (patch)
treeaefe469afc4b77f745214739bc4b25d9a141b333 /frontend/src/app/_pages/home
parent1cd65aa0bde78564fcc3650ff5290771bff43335 (diff)
Resen problem sa pocetnom stranicom.
Diffstat (limited to 'frontend/src/app/_pages/home')
-rw-r--r--frontend/src/app/_pages/home/home.component.html4
-rw-r--r--frontend/src/app/_pages/home/home.component.ts1
2 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/app/_pages/home/home.component.html b/frontend/src/app/_pages/home/home.component.html
index 5f446a93..eb59b726 100644
--- a/frontend/src/app/_pages/home/home.component.html
+++ b/frontend/src/app/_pages/home/home.component.html
@@ -45,12 +45,12 @@
</div>
<h2 class="my-4">Pogledajte javne izvore podataka!</h2>
- <app-carousel [*nglf = "publicDatasets" items]="publicDatasets">
+ <app-carousel *ngIf = "publicDatasets" [items]="publicDatasets">
</app-carousel>
<h3><a routerLink="browse-datasets">Pogledaj sve javne izvore podataka...</a></h3>
<h2 class="my-4">Iskoristite već trenirane modele!</h2>
- <app-carousel [*nglf = "publicPredictors" items]="publicPredictors">
+ <app-carousel *ngIf = "publicPredictors" [items]="publicPredictors">
</app-carousel>
<h3><a routerLink="browse-predictors">Pogledaj sve javne trenirane modele...</a></h3>
</div> \ No newline at end of file
diff --git a/frontend/src/app/_pages/home/home.component.ts b/frontend/src/app/_pages/home/home.component.ts
index f52dcf52..ed86a329 100644
--- a/frontend/src/app/_pages/home/home.component.ts
+++ b/frontend/src/app/_pages/home/home.component.ts
@@ -21,6 +21,7 @@ export class HomeComponent implements OnInit {
constructor(private datasetsService: DatasetsService, private predictorsService: PredictorsService) {
this.datasetsService.getPublicDatasets().subscribe((datasets) => {
this.publicDatasets = datasets;
+ console.log(datasets);
});
this.predictorsService.getPublicPredictors().subscribe((predictors) => {
this.publicPredictors = predictors;