Start to reorganize

This commit is contained in:
2019-09-29 22:08:21 -04:00
parent aee51c8a15
commit 89df5efe5a
92 changed files with 15494 additions and 544 deletions

View File

@@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
import { WeatherReading } from '../../../services/weather/weather-reading';
import { WeatherService } from '../../../services/weather/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);
}
}