diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-23 20:19:06 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-23 20:19:06 +0200 |
commit | 0b22611a929fc317c6ad073d2ddf5f198ee836f3 (patch) | |
tree | ca3593e76af10dc6a81ed0412c6d0e6434f73331 /js/controller | |
parent | 94e24c1e1a53db60e6924b39ad308b6b2d2e8c2b (diff) |
more boilerplate
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/ContentController.js | 11 | ||||
-rw-r--r-- | js/controller/NavigationController.js | 7 |
2 files changed, 17 insertions, 1 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 9edac534f..9258b3f11 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -37,4 +37,15 @@ function (Publisher, FeedResource, ItemResource, data) { console.log(itemId); }; + this.isContentView = () => { + console.log('tbd'); + }; + + this.orderBy = () => { + console.log('tbd'); + }; + + this.getRelativeDate = (timestamp) => { + console.log(timestamp); + }; });
\ No newline at end of file diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index 299d433da..08443191b 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -8,7 +8,7 @@ * @copyright Bernhard Posselt 2014 */ app.controller('NavigationController', -function (FeedResource, FolderResource, ItemResource) { +function (FeedResource, FolderResource, ItemResource, SettingsResource) { 'use strict'; this.getFeeds = () => { @@ -37,6 +37,10 @@ function (FeedResource, FolderResource, ItemResource) { FeedResource.markRead(); }; + this.isShowAll = () => { + return SettingsResource.get('showAll'); + }; + // TBD this.createFeed = () => { console.log('TBD'); @@ -74,4 +78,5 @@ function (FeedResource, FolderResource, ItemResource) { console.log('TBD'); }; + });
\ No newline at end of file |