title: Service - Cannot read property of undefined
body: <p>I am trying to put together a service for my controllers. But I keep getting an error saying 
  "Cannot read property 'industriesArr' of undefined". I'm pretty sure I'm misunderstanding something fundamental, so please educate me.</p>
  
  <p>Service:</p>
  
  <pre><code>angular.module('core').service('FormService', function() {
      var data = {
          'industriesArr': [
              'Alcoholic Drinks','Animals and Pets','Arts and Entertainment',
              'Baby and Toddler','Banking','Beauty and Personal Care','Building and Construction',
              'Clothing and Footwear','Communication Services','Confectionary and Snacks',
              'Dining and Nightlife',
              'Education and Jobs','Electronics and Technology',
              'Family and Community','Fast food and Restaurant','Financial Services','Food and Groceries',
              'Games and Toys','Government and Law',
              'Health','Home and Garden',
              'Insurances','Internet, Telecom and Software',
              'Jewelry and Luxury',
              'Leisure',
              'Media and Publications',
              'News','Non-alcoholic Drinks','Non-profit Organisation',
              'Occasions and Gifts','Office Supplies','Other',
              'Personal Accessories','Pharmaceutical and Medical','Political Organisation','Professional Services','Public Interest',
              'Real Estate','Retail Services and Wholesaler',
              'Sports Accessories','Sports and Fitness',
              'Tobacco','Tourism and Travel','Transport',
              'Utilities',
              'Vehicles'
          ]
      };
      return data;
  
  });
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>angular.module('core').controller('SignupController', ['$scope', 'FormService', function($scope, FormService) {
      $scope.industriesArr = FormService.data.industriesArr;
  });]);
  </code></pre>
  
  <p>HTML is simply:</p>
  
  <pre><code>&lt;p ng-repeat="industry in industriesArr"&gt;{{industry}}&lt;/p&gt;
  </code></pre>