summaryrefslogtreecommitdiffstats
path: root/js/controller/NavigationController.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-23 12:53:03 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-23 12:53:03 +0200
commitf1261587eb4f8283915f18d162173a6a3a8012b0 (patch)
tree1b617ad37c0e35f051d75716c2c4d58e0ea7e6a5 /js/controller/NavigationController.js
parentc12a2504cd25ea03077a09101155654efc10d971 (diff)
cache unread count
Diffstat (limited to 'js/controller/NavigationController.js')
-rw-r--r--js/controller/NavigationController.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js
index 700e6bd02..bc0c13d13 100644
--- a/js/controller/NavigationController.js
+++ b/js/controller/NavigationController.js
@@ -7,8 +7,18 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.controller('NavigationController', function () {
+app.controller('NavigationController',
+function (FeedResource, FolderResource, ItemResource) {
'use strict';
- console.log('here');
+ this.getFeeds = () => {
+ return FeedResource.getAll();
+ };
+
+ this.getFolders = () => {
+ return FolderResource.getAll();
+ };
+
+ console.log(ItemResource);
+
}); \ No newline at end of file