I am unable to toggle between hiding and showing a control using a select embedded in an Angular 4 reactive form. The following shows the issue: https://plnkr.co/edit/s7wYqy3Oa9
Update hidden to the following checking the true string
[hidden]="myForm.controls.isNameOnly.value == 'true'"
https://plnkr.co/edit/7ub2fy7CBdBA46i4qkvv?p=preview
I believe myForm.controls.isNameOnly.value
returns a string and [hidden]
evaluates it as an expression and since "true" or "false" are both non empty strings, so hidden is always true