Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save gokman/bb692d7f3db2d09498abde84bbd9a389 to your computer and use it in GitHub Desktop.

Select an option

Save gokman/bb692d7f3db2d09498abde84bbd9a389 to your computer and use it in GitHub Desktop.
angularjs - clear form data with model after save&update
userSaveForm.$setPristine();
$scope.userSaveFormData = {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment