title: $scope function is not defined (anonymous function)
body: <p>I have this code:</p>
  
  <pre><code>  $scope.startTimer = function (){
      $scope.settings.showMinutes = false;
      $scope.settings.showStart = false;
      $scope.settings.showPause = true;
      $scope.settings.showReset = true;
      $scope.settings.showDonate = false;
      if ($scope.settings.seconds &lt;= 0) {
        $scope.settings.seconds = 59;
        $scope.settings.minutes -= 1;
        if ($scope.settings.minutes &lt; 0) {
          $scope.settings.showPause = false;
          $scope.settings.stopTimer = true;
          return;
        }
        setTimeout('startTimer()', 1000);
      } else {
        $scope.settings.seconds -= 1;
        setTimeout('startTimer()', 1000);
      }
    }
  </code></pre>
  
  <p>When I start <code>startTimer</code> function I get error:<br></p>
  
  <blockquote>
    <p>Uncaught ReferenceError: startTimer is not defined (anonymous
    function)</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>