chore: grab history records (prepare for show-off)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-11-10 19:39:35 +01:00
parent 683c88652f
commit 5146b9f04d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -1,5 +1,6 @@
import { Component } from '@angular/core';
import { Storage } from '@ionic/storage';
import { HistoryService } from '../api/history.service';
import { HistoryRecord } from '../models/history-record.model';
@Component({
selector: 'app-tab2',
@ -8,6 +9,12 @@ import { Storage } from '@ionic/storage';
})
export class Tab2Page {
constructor(private storage: Storage) {}
historyArray: HistoryRecord[]
constructor(private historyService: HistoryService) {}
ionViewWillEnter()
{
console.log('Method ionViewWillEnter was called.');
this.historyArray = this.historyService.getRecord();
}
}