import { Forecast, ForecastItem } from '../../models/forecast'; import { Component, Input, OnChanges, OnInit } from '@angular/core'; import { OpenWeatherMapService } from '../../service/open-weather-map.service'; import { WeatherSearchParams, Coordinates } from '../../service/classes'; import * as moment from 'moment/moment'; import 'rxjs/add/observable/interval'; import { Observable } from 'rxjs'; // import * as template from './weather-prevision.component.html!Text'; @Component({ selector: 'ngw-weather-prevision', // templateUrl: './weather-prevision.component.html', // template: template.default, template: `
{{item.main.temp_max}}°c {{item.weather[0]?.description}}
min : {{item.main.temp_min}}°c - max : {{item.main.temp_max}}°c
wind: {{item.wind.speed}} m/sec
Humidity: {{item.main.humidity}}%
Rain volume: {{item.rain['3h']}} mm
Snow volume: {{item.snow['3h']}}