paulyoder/angular-bootstrap-show-errors

showErrors.min.js:2 Uncaught TypeError: Cannot read property '$invalid' of undefined

Opened this issue · 1 comments

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>`

Is hotelForm is a valid formname in your view?