Reorganization

This commit is contained in:
2019-09-10 21:19:20 -04:00
parent b69f4c70f1
commit 0e21452d2b
20 changed files with 9 additions and 17 deletions

View File

@@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
import { WeatherReading } from 'src/app/weather/service/weather-reading';
import { WeatherService } from 'src/app/weather/service/weather.service';
@Component({
selector: 'app-weather-current',
templateUrl: './weather-current.component.html',
styleUrls: ['./weather-current.component.scss']
})
export class WeatherCurrentComponent implements OnInit {
public latestReading: WeatherReading;
constructor(private weatherService: WeatherService) { }
ngOnInit() {
this.weatherService.getLatestReading().subscribe(r => this.latestReading = r);
}
}