title: AngularJS check if form is valid in controller
body: <p>I need to check if a form is valid in a controller.</p>
  
  <p>View:</p>
  
  <pre><code>&lt;form novalidate=""
        name="createBusinessForm"
        ng-submit="setBusinessInformation()"
        class="css-form"&gt;
   &lt;!-- fields --&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>In my controller:</p>
  
  <pre><code>.controller(
      'BusinessCtrl',
      function ($scope, $http, $location, Business, BusinessService, 
                UserService, Photo)
      {
  
          if ($scope.createBusinessForm.$valid) {
              $scope.informationStatus = true;
          }
  
          ...
  </code></pre>
  
  <p>I'm getting this error:</p>
  
  <pre><code>TypeError: Cannot read property '$valid' of undefined
  </code></pre>