title: Start $interval immediately in AngularJS
body: <p>I have the function <code>notifications.get()</code> that runs every 10 seconds.</p>
  
  <pre><code>function notificationsCtrl($scope, $interval) {
      $interval(function(){ 
          $scope.notification = notifications.get();
          $('.card').addClass('rotate');
      }, 10000);
  };
  </code></pre>
  
  <p>But when the page is loaded, the function should be called once immediately.
  Can anyone help me?</p>