title: Angular.js reset button no effect on ng-repeat
body: <p>How is it possible to delete the ul element with the reset button in the following code </p>
  
  <pre><code>&lt;html ng-app&gt;
  
      &lt;head&gt;
          &lt;script src="http://code.angularjs.org/1.2.0rc1/angular.min.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;form ng-submit="submit()" ng-controller="Ctrl"&gt;Enter text and hit enter:
              &lt;input type="text" ng-model="text" name="text" /&gt;
              &lt;input type="submit" id="submit" value="Submit" /&gt;
              &lt;input type="reset" id="reset" value="Reset" /&gt;
              &lt;ul&gt;
                  &lt;li ng-repeat="(key,val) in ret"&gt;{{key}} = {{val}}&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/form&gt;
          &lt;script&gt;
              function Ctrl($scope) {
                  $scope.ret = {}
  
                  $scope.reset = function() {
                      $scope.ret = {}
                  }
  
                  $scope.submit = function() {
                      var str = $scope.text;
                      var ret = $scope.ret
                      for (x = 0, length = str.length; x &lt; length; x++) {
                          var l = str.charAt(x);
                          ret[l] = (isNaN(ret[l]) ? 1 : ret[l] + 1);
                      }
                      $scope.ret = ret
                  }
              }
          &lt;/script&gt;
      &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Thank you in advance.</p>