title: AngularJS scope
body: <p>I have run into a issue when trying to reference models with angularjs. I can get some of them to reference, but others are not working. I've included the code below:</p>
  
  <pre><code>function DeleteCustomers($scope, func) {
       $scope.delete = function() {
           func.deleteCustomer($scope.customer);
       }
   }
  
  
  function UpdateCustomers($scope, func) {
      $scope.update = function() {
          func.updateCustomer({ name: $scope.name2, telephone: $scope.telephone2,
              email: $scope.email2, street: $scope.street2,
              city: $scope.city2, zipcode: $scope.zipcode2 });
          }
      }
  }
  </code></pre>
  
  <p>And the html is</p>
  
  <pre><code>&lt;div ng-controller="UpdateCustomers"&gt;
         &lt;form class="test-angular-update"&gt;
             &lt;input type="text" ng-model="name2"&gt;&lt;br&gt;
             &lt;input type="text" ng-model="telephone2"&gt;&lt;br&gt;
             &lt;input type="text" ng-model="email2"&gt;&lt;br&gt;
             &lt;input type="text" ng-model="street2"&gt;&lt;br&gt;
             &lt;input type="text" ng-model="city2"&gt;&lt;br&gt;
             &lt;input type="text" ng-model="zipcode2"&gt;&lt;br&gt;
             &lt;button class="button" ng-click="update()"&gt;Update&lt;/button&gt;&lt;br&gt;
         &lt;/form&gt;
     &lt;/div&gt;
  
     &lt;br&gt;&lt;br&gt;
     &lt;div ng-controller="DeleteCustomers"&gt;
         &lt;form class="text-angular-delete"&gt;
             Customer Name &lt;input type="text" ng-model="customer"&gt;&lt;br&gt;
             &lt;button class="button" ng-click="delete()"&gt;Delete&lt;/button&gt;&lt;br&gt;
         &lt;/form&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>All the models from UpdateCustomers and DeleteCustomers are not being able to be referenced by the controllers. Any help would be appreciated.</p>
  
  <p>Thanks!</p>