Guest User

Untitled

a guest
Feb 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. this.searchForm = this._formBuilder.group({
  2.  
  3. profileName: new FormControl('', Validators.compose([Validators.required])),
  4. TypeId: new FormControl('', Validators.compose([Validators.required])),
  5. tempRange: new FormControl('', Validators.compose([Validators.required])),
  6. region: new FormControl('', Validators.compose([Validators.required])),
  7. quarter1: new FormControl('', Validators.compose([Validators.required])),
  8. quarter2: new FormControl('', Validators.compose([Validators.required]))
  9.  
  10. }, {
  11. validator: this.customValidator// your validation method
  12. });
Add Comment
Please, Sign In to add comment