create db completion service and mock data

This commit is contained in:
Jesse Lucas
2020-03-29 16:51:12 -04:00
parent bc7d71ee3d
commit 09673ba0c6
9 changed files with 107 additions and 8 deletions
@@ -20,9 +20,10 @@ export class DeviceChartComponent implements OnInit {
ngOnInit(): void { }
ngAfterViewInit(): void {
// TODO switch to deviceService
this.deviceService.getAll().subscribe(
device => {
console.log("device", device);
// Get StateType and convert to string
const stateType: Device.StateType = Device.getStateType(device);
const state: string = Device.stateTypeToString(stateType);