changeuserpassword.component.ts
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { Component, OnInit } from '@angular/core';
import { UserService } from './UpdateProfile/user.service';
import { Router } from '@angular/router';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { IUser } from './UpdateProfile/datamodel';
import { Http, Response } from '@angular/http';
//import { Global } from '../../Shared/global';
//import { DBOperation } from 'S';
//import { Observable } from 'rxjs/Observable';
@Component({
templateUrl: '../components/changeuserpassword.component.html'
})
export class ChangeUserPassword implements OnInit {
constructor(private userservice: UserService, private router: Router, private fb: FormBuilder) { }
ngOnInit(): void { }
formErrors = {
'firstName': '',
'lastName': '',
'email': ''
};
validationMessages = {
'firstName': {
'required': 'First name is required.'
},
'lastName': {
'required': 'Last name is required.'
},
'email': {
'required': 'Email is required.',
'pattern': 'Email pattern is not valid.'
}
}
}