diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 4e3b994..61e97a4 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -25,20 +25,22 @@ import * as firebase from 'firebase/app'; import {ServiceWorkerModule} from '@angular/service-worker'; import {LineChartModule, NgxChartsModule} from '@swimlane/ngx-charts'; import {RoundPipe} from './round.pipe'; -import { WidgetComponent } from './battery/widget/widget.component'; +import {BatteryWidgetComponent} from './battery/widget/batteryWidget.component'; +import {WeatherWidgetComponent} from './weather/widget/weatherWidget.component'; export const firebaseApp = firebase.initializeApp(environment.firebase); @NgModule({ declarations: [ AppComponent, + BatteryWidgetComponent, DashboardComponent, BatteryComponent, WeatherComponent, SecurityComponent, LoginComponent, RoundPipe, - WidgetComponent + WeatherWidgetComponent ], imports: [ AppRoutingModule, diff --git a/src/app/battery/widget/widget.component.html b/src/app/battery/widget/batteryWidget.component.html similarity index 100% rename from src/app/battery/widget/widget.component.html rename to src/app/battery/widget/batteryWidget.component.html diff --git a/src/app/battery/widget/batteryWidget.component.ts b/src/app/battery/widget/batteryWidget.component.ts new file mode 100644 index 0000000..217a832 --- /dev/null +++ b/src/app/battery/widget/batteryWidget.component.ts @@ -0,0 +1,10 @@ +import {Component} from '@angular/core'; +import {BatteryService} from '../battery.service'; + +@Component({ + selector: 'battery-widget', + templateUrl: './batteryWidget.component.html' +}) +export class BatteryWidgetComponent { + constructor(public batteryService: BatteryService) { } +} diff --git a/src/app/battery/widget/widget.component.ts b/src/app/battery/widget/widget.component.ts deleted file mode 100644 index cb831e1..0000000 --- a/src/app/battery/widget/widget.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, OnInit } from '@angular/core'; -import {BatteryService} from '../battery.service'; - -@Component({ - selector: 'battery-widget', - templateUrl: './widget.component.html' -}) -export class WidgetComponent implements OnInit { - - constructor(public batteryService: BatteryService) { } - - ngOnInit() { } -} diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html index 0fb098c..fe38f70 100644 --- a/src/app/dashboard/dashboard.component.html +++ b/src/app/dashboard/dashboard.component.html @@ -1,7 +1,22 @@ -