Disable all the controls in a form typescript

Viewed 1526

How to disable all the controls in a template driven form.

Tried Solutions.

using filedset and set [disabled] to that - which will not work in IE 9+. Also using fieldset, the inputs are not disabled

 <button class="icon-btn pull-right addNewBtn" type="button" title="Add New " data-toggle="modal" id="Btn" data-backdrop="false"><i (click)="Person(Code)" class="fa fa-user-plus"></i></button>

  <p-radioButton name="type" value="I" label="Inc" [(ngModel)]="type"></p-radioButton>

I don't have a form group, so that solution also didn't work here.

Let me know Is there any other solution in AngularJS 2

1 Answers
Related