diff options
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r-- | js/controller/ContentController.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index ffada2a5c..51309a93d 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -7,8 +7,17 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.controller('ItemController', function () { +app.controller('ContentController', function (Publisher, Feed, Item, data) { 'use strict'; - console.log('here'); + // distribute data to models based on key + Publisher.publishAll(data); + + this.getItems = function () { + return Item.getAll(); + }; + + this.getFeeds = function () { + return Feed.getAll(); + }; });
\ No newline at end of file |