diff options
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/AppController.js | 4 | ||||
-rw-r--r-- | js/controller/ContentController.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/js/controller/AppController.js b/js/controller/AppController.js index ee8115c84..b833d3fe1 100644 --- a/js/controller/AppController.js +++ b/js/controller/AppController.js @@ -7,13 +7,13 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.controller('AppController', function (Loading, Feed, Folder) { +app.controller('AppController', function (Loading, FeedResource, FolderResource) { 'use strict'; this.loading = Loading; this.isFirstRun = function () { - return Feed.size() === 0 && Folder.size() === 0; + return FeedResource.size() === 0 && FolderResource.size() === 0; }; });
\ No newline at end of file diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 51309a93d..8e4632f7e 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -7,17 +7,17 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.controller('ContentController', function (Publisher, Feed, Item, data) { +app.controller('ContentController', function (Publisher, FeedResource, ItemResource, data) { 'use strict'; // distribute data to models based on key Publisher.publishAll(data); this.getItems = function () { - return Item.getAll(); + return ItemResource.getAll(); }; this.getFeeds = function () { - return Feed.getAll(); + return FeedResource.getAll(); }; });
\ No newline at end of file |