I need to check if the form is valid in the controller.
View:
<form novalidate="" name="createBusinessForm" ng-submit="setBusinessInformation()" class="css-form"> </form>
In my controller:
.controller( 'BusinessCtrl', function ($scope, $http, $location, Business, BusinessService, UserService, Photo) { if ($scope.createBusinessForm.$valid) { $scope.informationStatus = true; } ...
I get this error:
TypeError: Cannot read property '$valid' of undefined
angularjs
Rober Nov 18 '13 at 17:32 2013-11-18 17:32
source share