All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.shared.components.dataset-selection.dataset-selection.component.ts Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { DataSetService } from '@core/services';
import { Dataset } from '@model';


@Component({
    selector: 'chutney-dataset-selection',
    templateUrl: './dataset-selection.component.html',
    styleUrls: ['./dataset-selection.component.scss']
})
export class DatasetSelectionComponent implements OnInit {

    @Input() selectedDatasetId: String;
    @Output() selectionEvent = new EventEmitter();

    datasets: Array;

    constructor(private datasetService: DataSetService) {
    }

    ngOnInit(): void {
        this.datasetService.findAll().subscribe((res: Array) => {
            this.datasets = res;
        });
    }

    changingValue(event: any) {
        this.selectionEvent.emit(event.target.value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy