Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 231638

Can't access form on $scope

$
0
0

I ran into this problem too.

As a bit of a work around, you can pass the form into the current controller $scope like this...

<form name="form" ng-submit="submit(form)" novalidate>

then in your controller you can access the validation results etc like so...

$scope.submit = function (form) {
    var isValid = form.$valid;
}

Viewing all articles
Browse latest Browse all 231638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>