title: Angular controller being called 10 times on init
body: <p>I am in the early stages of learning AngularJS and am seeing a strange behavior.  When my page loads, the associated controller is called 10 times.  I have a <a href="http://jsfiddle.net/stanlick/jbJ87/1/" rel="nofollow">fiddle</a> here that reveals behavior.  As you enter a char in the input box, you will see it is called another 11 times.</p>
  
  <pre><code>    &lt;html&gt;
  &lt;head&gt;
  &lt;script
      src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          var HelloCtrl = function($scope) {
              var keysTyped = 0;
              $scope.name = 'World';
  
              $scope.i = function() {
                  return keysTyped++;
              };
          }
  &lt;/script&gt;Angular controller being called 10 times on init
  &lt;/head&gt;
  &lt;body ng-app&gt;
      &lt;div ng-controller="HelloCtrl"&gt;
          Say hello to: &lt;input type="text" ng-model="name"/&gt;&lt;br/&gt;
          &lt;h1&gt;Characters typed, {{i()}}!&lt;/h1&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>