aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/account/account.component.ts
blob: 929934f67adad77b38506205b0170e9cb86d2eb9 (plain) (tree)
1
2
3
4
5
6
7


                                                       
 
                                                             
 
                                     




               
                  


                         

                                           
  
                                                 
                   
 
                                                   
 

                                          

   
import { Component, OnInit } from '@angular/core'
import { FormBuilder, FormGroup } from '@angular/forms'
import { Router } from '@angular/router'

import { NotificationsService } from 'angular2-notifications'

import { AuthService } from '../core'
import {
  FormReactive,
  User,
  UserService,
  USER_PASSWORD
} from '../shared'

@Component({
  selector: 'my-account',
  templateUrl: './account.component.html',
  styleUrls: [ './account.component.scss' ]
})
export class AccountComponent implements OnInit {
  user: User = null

  constructor (private authService: AuthService) {}

  ngOnInit () {
    this.user = this.authService.getUser()
  }
}