showErrors.min.js:2 Uncaught TypeError: Cannot read property '$invalid' of undefined
Opened this issue · 1 comments
abhikakade commented
My controller function:
`$scope.save = function() {
$scope.$broadcast('show-errors-check-validity');
if ($scope.hotelForm.$valid) {
// save the user
}
}`
Form element
`
Name
Save
</div>
</form>`
klaydze commented
Is hotelForm is a valid formname in your view?