I\'m starting to play around with AngularJS forms in jsfiddle and I\'ve come across a problem already where a very simple form example is not working as expected. All I have
This is the recommended way to access form variable: https://docs.angularjs.org/guide/forms - Binding to form and control state
In HTML:
Youl will pass the name of the form as a variable to the function.
In JS :
$scope.reset = function(form) {
alert(form);
};
Variable 'form' should NOT be undefined now.