- add bulma style
- add components: messages, locate-button - move index.html into src folder - move to angular build tools - styles.css -> styles.scss
This commit is contained in:
parent
220944b115
commit
df3561235d
37 changed files with 12724 additions and 645 deletions
|
@ -1,5 +1,6 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { StationService } from '../services/station.service';
|
||||
// import { StationService } from '../services/station.service';
|
||||
import { DatasetApiService } from '../services/dataset-api.service';
|
||||
import { Station } from '../../shared/models/station';
|
||||
|
||||
@Component({
|
||||
|
@ -11,15 +12,19 @@ export class DashboardComponent implements OnInit {
|
|||
|
||||
public stations: Station[] = [];
|
||||
|
||||
constructor(private stationService: StationService) { }
|
||||
constructor(private datasetApiService: DatasetApiService) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.getStations();
|
||||
}
|
||||
|
||||
getStations(): void {
|
||||
this.stationService.getStations()
|
||||
.subscribe(stations => this.stations = stations);
|
||||
// this.stationService.getStations()
|
||||
// .subscribe(stations => this.stations = stations);
|
||||
this.datasetApiService.getStations('https://geomon.geologie.ac.at/52n-sos-webapp/api/')
|
||||
.subscribe((stations) => {
|
||||
this.stations = stations
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue