title: Uncaught ReferenceError: items is not defined
body: <p>I'm trying to push an item to an array every 5 seconds in an AngularJS service, but I keep getting 'items is not defined' after 1 item is added dynamically...</p>
  
  <p>I've been playing with this simple code for over an hour now, I'm sure it's something silly but I can't figure it out. :/</p>
  
  <pre><code>app.service('ItemService', function() {
  
    var items = [9000];
  
    this.addItem = function () {
      items.push(Math.random());
    }
  
    setInterval(this.addItem(), 5000);
  
    return {
      get: function() {
        return items;
      }
    }
  });
  </code></pre>
  
  <p>Plnkr: <a href="http://plnkr.co/edit/EVFUww7dfUAJzQqth7mx" rel="nofollow">http://plnkr.co/edit/EVFUww7dfUAJzQqth7mx</a></p>