Added more stuff

This commit is contained in:
2018-11-14 22:40:11 -05:00
parent 8b42e2929b
commit af4abd85bc
11 changed files with 468 additions and 62 deletions

View File

@@ -5,7 +5,7 @@ import {Injectable} from '@angular/core';
})
export class BatteryService {
percentage: number[] = [0];
charging: boolean;
charging?: boolean;
get average() {
return this.percentage.reduce((acc, battery) => acc + battery, 0) / this.percentage.length;