Sharing Top Content from the Angular-sphere.

[SOLVED] AngularJS — How to disable a form when it’s being submitted?- Angular.js Recipes

  • Angular.js Recipes are structured in a Cookbook format featuring recipes that contain problem statements and solutions.
  • A detailed explanation follows each problem statement of the recipe.
  • Angular.js is a JavaScript-based open-source front-end web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications.
  • The JavaScript components complement Apache Cordova, the framework used for developing cross-platform mobile apps.
  • It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) and model–view–viewmodel (MVVM) architectures, along with components commonly used in rich Internet applications.

You can put all form elements into fieldset and use ng-disabled to disable the whole fieldset.


@angular_recipe: AngularJS — How to disable a form when it’s being submitted? #Angular #AngularJS

How does one disable the complete form (all input elements within it), while it’s being submitted via AJAX? I’ve tried setting a

attribute, but it seems like a workaround. There should be an easier + straight-forward way of doing this.

to disable the whole fieldset.

There is currently no discussion for this recipe.

This recipe can be found in it’s original form on Stack Over Flow.

Angular.js Recipes are structured in a Cookbook format featuring recipes that contain problem statements and solutions. A detailed explanation follows each problem statement of the recipe. This is usually contained within the solution; however, an optional discussion section can often contain other useful information helping to demonstrate how the solution works.

Angular.js is a JavaScript-based open-source front-end web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications. The JavaScript components complement Apache Cordova, the framework used for developing cross-platform mobile apps. It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) and model–view–viewmodel (MVVM) architectures, along with components commonly used in rich Internet applications.

Lost? Begin by working through Angular’s Getting Started Guide to get yourself up-and-running.

[SOLVED] AngularJS — How to disable a form when it’s being submitted?- Angular.js Recipes

Comments are closed, but trackbacks and pingbacks are open.