]>
Commit | Line | Data |
---|---|---|
629d8d6f | 1 | import { Component, OnInit } from '@angular/core'; |
4b2f33f3 | 2 | import { FormBuilder, FormGroup } from '@angular/forms'; |
629d8d6f C |
3 | import { Router } from '@angular/router'; |
4 | ||
7ddd02c9 C |
5 | import { NotificationsService } from 'angular2-notifications'; |
6 | ||
af5e743b C |
7 | import { AuthService } from '../core'; |
8 | import { | |
9 | FormReactive, | |
10 | User, | |
11 | UserService, | |
12 | USER_PASSWORD | |
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 C |
20 | export class AccountComponent implements OnInit { |
21 | user: User = null; | |
629d8d6f | 22 | |
af5e743b | 23 | constructor(private authService: AuthService) {} |
4b2f33f3 C |
24 | |
25 | ngOnInit() { | |
af5e743b | 26 | this.user = this.authService.getUser(); |
629d8d6f C |
27 | } |
28 | } |