Angular2 enable an input field on check of radio button

后端 未结 1 582
生来不讨喜
生来不讨喜 2021-01-28 00:36

Am iterating through items and i would lie to show an input box if a certain radio button is checked

This is the form



        
相关标签:
1条回答
  • 2021-01-28 00:58
       <input #notPassed type='radio' name="check{{checklist.id}}" value='no_{{checklist.id}}'> Not passed
    
    
           <ion-item [hidden]="notPassed.value == '...'">//hide when Not passed radio is not checked
    

    (I don't know what actual values you are using, therefore just ...)

    Hint: not tested myself yet.

    0 讨论(0)
提交回复
热议问题