mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
18 lines
486 B
TypeScript
18 lines
486 B
TypeScript
import {Component} from '@angular/core';
|
|
import {LibraryAccountService} from './library-account.service';
|
|
|
|
@Component({
|
|
templateUrl: './account.page.html',
|
|
styleUrls: ['./account.page.scss'],
|
|
})
|
|
export class LibraryAccountPageComponent {
|
|
name?: string;
|
|
|
|
constructor(private readonly libraryAccountService: LibraryAccountService) {}
|
|
|
|
async ionViewWillEnter(): Promise<void> {
|
|
const patron = await this.libraryAccountService.getPatron();
|
|
this.name = patron?.name;
|
|
}
|
|
}
|