]>
Commit | Line | Data |
---|---|---|
df98563e C |
1 | import { Component, OnInit } from '@angular/core' |
2 | import { FormBuilder, FormGroup } from '@angular/forms' | |
3 | import { Router } from '@angular/router' | |
629d8d6f | 4 | |
df98563e | 5 | import { NotificationsService } from 'angular2-notifications' |
7ddd02c9 | 6 | |
df98563e | 7 | import { AuthService } from '../core' |
af5e743b C |
8 | import { |
9 | FormReactive, | |
10 | User, | |
11 | UserService, | |
12 | USER_PASSWORD | |
df98563e | 13 | } from '../shared' |
629d8d6f C |
14 | |
15 | @Component({ | |
16 | selector: 'my-account', | |
af5e743b C |
17 | templateUrl: './account.component.html', |
18 | styleUrls: [ './account.component.scss' ] | |
629d8d6f | 19 | }) |
af5e743b | 20 | export class AccountComponent implements OnInit { |
df98563e | 21 | user: User = null |
629d8d6f | 22 | |
df98563e | 23 | constructor (private authService: AuthService) {} |
4b2f33f3 | 24 | |
df98563e C |
25 | ngOnInit () { |
26 | this.user = this.authService.getUser() | |
629d8d6f C |
27 | } |
28 | } |