Tink Tink - 10 months ago 66
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

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

<p ng-if="formState.readOnly">{{model[options.key].name}}</p>