I have hit a documentation gap in 1.4.3 Angular with respect to accessing 
the form from within the scope. Numerous examples indicate that the 
following should work:

$scope.someForm.$setPristine;


However, my $scope does not contain the someForm when accessed within 
controller code. I can access someForm directly, but it has none of the 
controller methods or values indicating that it is a different object. My 
controller is declared as so:

angular.module('provisioning', 
['ui.bootstrap']).controller('ProvisioningController', ['$scope', '$http', 
function($scope, $http)


and the form html is as follows:

<form name="someForm" class="form-horizontal" style="padding-top:15px" 
"novalidate  ng-submit="submitForm()">


Any ideas would be appreciated as google is turning up nothing useful.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to