]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+accounts/accounts.component.ts
Improve Twitter config help
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts.component.ts
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'
5
6 @Component({
7 templateUrl: './accounts.component.html',
8 styleUrls: [ './accounts.component.scss' ]
9 })
10 export class AccountsComponent implements OnInit {
11 account: Account
12
13 constructor (
14 private route: ActivatedRoute,
15 private accountService: AccountService
16 ) {}
17
18 ngOnInit () {
19 const accountId = this.route.snapshot.params['accountId']
20
21 this.accountService.getAccount(accountId)
22 .subscribe(account => this.account = account)
23 }
24 }