title: What's wrong with this service in angularjs?
body: <p>Please I have two questions , For huge applications, Angularjs , Is it a good solution in term of cpu usage?</p>
  
  <p>What is wrong with my angular code?</p>
  
  <pre><code>var myapp = angular.module('myapp', []);
  
  myapp.service('server', function (url){
      this.get = function ($http){
      return $http.get(url);
      };        
  });
  
  
  
  myapp.controller('myctrl' , function($scope,server){
  
      setInterval(function(){
  
          $scope.r= server.get('response.js');
  
      },1000);
  
  });
  </code></pre>