angularjsiframetextareaangularjs-ng-disabled

How I can use ng-disable in a iframe


I have in iframe which I set ng-disable to true, in the iframe I call an html that contains a textarea, but even though the iframe is disabled this control I can access it without any problem.

How or what should be done to disable and enable in run time textarea control within the iframe, using angular?


Solution

  • I think ng-disabled affects with INPUT element only If you want to disable entire Iframe element you should use a ng-class or ng-show/ng-hide and write a cssClass background cover entire your Iframe to prevent from clicking.