chore: grab history records (prepare for show-off)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
683c88652f
commit
5146b9f04d
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user