Tink Tink - 1 year ago 117
AngularJS Question

Angular js : How to disable the formly form?

I need to disable the whole formly form and not just the fields.

That is, disable the whole form so that the form is disabled and not just in readonly mode?

Can anyone please help.

Below is my sample code.I need a property which can disable the whole form.

$scope.formOptions = {
formState : {
readOnly : true

Answer Source
                                name : 'input',
                                wrapper : [ 'bootstrapLabel',
                                        'bootstrapHasError' ],
                                templateUrl : 'Forminput.html',
                                overwriteOk : true

<p ng-if="formState.readOnly">{{model[options.key].name}}</p>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download