How to disable all controls in a template-driven form.
Trial solutions.
using filedset and set [disabled] to this - that will not work in IE 9+. Also, using fieldset, 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 do not have a form group, so the solution also does not work here.
Let me know if there is another solution in AngularJS 2
source share