]>
Commit | Line | Data |
---|---|---|
c30745f3 C |
1 | import { Component, OnInit } from '@angular/core' |
2 | import { User } from '../../shared' | |
3 | import { AuthService } from '../../core' | |
4 | ||
5 | @Component({ | |
6 | selector: 'my-account-settings', | |
7 | templateUrl: './account-settings.component.html', | |
8 | styleUrls: [ './account-settings.component.scss' ] | |
9 | }) | |
10 | export class AccountSettingsComponent implements OnInit { | |
11 | user: User = null | |
12 | ||
13 | constructor (private authService: AuthService) {} | |
14 | ||
15 | ngOnInit () { | |
16 | this.user = this.authService.getUser() | |
17 | } | |
18 | } |