Skip to content

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

@abhikakade

Description

@abhikakade

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions