1 import { Component, OnInit } from '@angular/core'
2 import { ActivatedRoute } from '@angular/router'
3 import { AccountService } from '@app/shared/account/account.service'
4 import { Account } from '@app/shared/account/account.model'
7 templateUrl: './accounts.component.html',
8 styleUrls: [ './accounts.component.scss' ]
10 export class AccountsComponent implements OnInit {
14 private route: ActivatedRoute,
15 private accountService: AccountService
19 const accountId = this.route.snapshot.params['accountId']
21 this.accountService.getAccount(accountId)
22 .subscribe(account => this.account = account)