Skip to content

Instantly share code, notes, and snippets.

@piyuesh23
Created July 7, 2014 10:03
Show Gist options
  • Save piyuesh23/ef639c202c160f63ffea to your computer and use it in GitHub Desktop.
Save piyuesh23/ef639c202c160f63ffea to your computer and use it in GitHub Desktop.
Clear form on Angular end
### Using Form inside a controller ###
$scope.formName.$setPristine()
### Including a form using ng-include ###
this.formName.$setPristine()
### Resetting data being set using ng-modal###
$scope.modal = ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment