I would like to call the login function when I click the login button but keep getting the error message in the title. Can someone point out the error in my script?
Explanation:
AngularJS 1.x registers any form DOM element that has a name property in $scope via formDirectiveFactory. This directive automatically instantiates form.FormController if the above is true:
If the
nameattribute is specified, the form controller is published onto the current scope under
from: angular.js:24855
Hence if you have a it will override your $scope.myForm = function() { ... }