'use strict';

/**
 * @ngdoc service
 * @name barteguidenMarkedsWebApp.eventService
 * @description
 * # eventService
 * Factory in the barteguidenMarkedsWebApp.
 */
angular.module('barteguidenMarkedsWebApp.services')
  .factory('Event', function ($resource) {
    return $resource('http://localhost:4004/api/events/:id', { id: '@_id' }, {
      update: {
        method: 'PUT'
      },
      query: {
        method: 'GET',
        isArray: true
      }
    });
  });



'use strict';

/**
 * @ngdoc service
 * @name barteguidenMarkedsWebApp.eventService
 * @description
 * # eventService
 * Factory in the barteguidenMarkedsWebApp.
 */
angular.module('barteguidenMarkedsWebApp.services')
  .factory('Event', function ($resource) {
    return $resource('http://barteguiden.no/v2/events/:id', { id: '@_id' }, {
      update: {
        method: 'PUT'
      },
      query: {
        method: 'GET',
        isArray: false
      }
    });
  });



--- 
+++ 
@@ -9,13 +9,13 @@
  */
 angular.module('barteguidenMarkedsWebApp.services')
   .factory('Event', function ($resource) {
-    return $resource('http://barteguiden.no/v2/events/:id', { id: '@_id' }, {
+    return $resource('http://localhost:4004/api/events/:id', { id: '@_id' }, {
       update: {
         method: 'PUT'
       },
       query: {
         method: 'GET',
-        isArray: false
+        isArray: true
       }
     });
   });
Update the EventService to use the local server. The event response is now an array
