title: Refresh scope on every x time using $timeout
body: <p>I am a newbie to angular. I want to use $timeout of angular to refresh scope after few minutes. I am working on an social app where i need to refresh notification scope after few minutes. Getting notification from a http request using service.</p>
  
  <p>JS:</p>
  
  <pre><code>App.factory('MyService' ,function($scope,$timeout){
  return{
   notification:return function(callback){
        $timeout(function(){
         $http.get("notification/get").success(callback)
        },100000);
  
  
  }
  }); 
  
  function Controller($scope,MyService){
  
   MyService.notification(function(result){
    $scope.notification =data;
   });
  </code></pre>
  
  <p>}</p>
  
  <p>Now how can i make http request after few minutes let'say 1 minute and refresh notification scope. I tried using $timeout but things are not working fine.</p>