diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-21 23:43:28 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-21 23:43:28 +0200 |
commit | 0fa67552247b2d29a6ca438c2605b8db2bbdbab7 (patch) | |
tree | 8109135e2fc141a324e8f21c66243ee4277b3b7c /js/controller/ContentController.js | |
parent | d3a774b2bd79654360a3ef12618102abf85a2ce3 (diff) |
es6 all the things
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r-- | js/controller/ContentController.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 8e4632f7e..ae5116dbb 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -7,17 +7,18 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.controller('ContentController', function (Publisher, FeedResource, ItemResource, data) { +app.controller('ContentController', +function (Publisher, FeedResource, ItemResource, data) { 'use strict'; // distribute data to models based on key Publisher.publishAll(data); - this.getItems = function () { + this.getItems = () => { return ItemResource.getAll(); }; - this.getFeeds = function () { + this.getFeeds = () => { return FeedResource.getAll(); }; });
\ No newline at end of file |