Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abhikakade opened this issue May 24, 2016 · 1 comment

Comments

@abhikakade
Copy link

abhikakade commented May 24, 2016

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
Copy link

klaydze commented Sep 8, 2016

Is hotelForm is a valid formname in your view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants