SHARE
TWEET

Untitled

a guest Jun 20th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ngOnInit(){
  2.     this.myForm = this.fb.group({
  3.         damageDetailsTwoForm: this.fb.group({
  4.             injuryTypeGp: this.fb.group({
  5.             injuryType: new FormControl('', Validators.required),
  6.             damageReportedToPolice: new FormControl(''),
  7.             itemOwner: new FormControl(''),
  8.             objectDescription: new FormControl('')
  9.             }),
  10.         })
  11.     });
  12. }
  13.      
  14. getSelectedItem(data) {
  15.     console.log(data);
  16.     if (data.value === 'Replacement of windows etc.') {
  17.         console.log('in here');
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top