1 import { Component, OnInit } from '@angular/core'
2 import { ActivatedRoute } from '@angular/router'
3 import { Account } from '@app/shared/account/account.model'
4 import { AccountService } from '@app/shared/account/account.service'
7 selector: 'my-account-about',
8 templateUrl: './account-about.component.html',
9 styleUrls: [ './account-about.component.scss' ]
11 export class AccountAboutComponent implements OnInit {
15 protected route: ActivatedRoute,
16 private accountService: AccountService
20 // Parent get the account for us
21 this.accountService.accountLoaded
22 .subscribe(account => this.account = account)
25 getAccountDescription () {
26 if (this.account.description) return this.account.description
28 return 'No description'