daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Other Form Controls
  2.  empCode:[this.userFormDetails.userId],
  3.  empName:[this.userFormDetails.name],
  4.  pensionType:[''],
  5.  fhName:[
  6.           ()=>{
  7. return this.userFormDetails.gender=="Male"? this.userFormDetails.fatherName:this.userFormDetails.spouseName
  8. }],  
  9. .
  10. //Rest of the controls
  11.    
  12. ()=>{ ( **<--addition parenthesis**
  13. return this.userFormDetails.gender=="Male"? this.userFormDetails.fatherName:this.userFormDetails.spouseName
  14. )}
  15.    
  16. fhName:[{
  17.      value: ()=>{
  18.                  return this.userFormDetails.gender=="Male"?
  19.                  this.userFormDetails.fatherName:this.userFormDetails.spouseName
  20.                 },
  21.                 disabled:false
  22.              }
  23.             ]
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