diff options
Diffstat (limited to 'js/app')
-rw-r--r-- | js/app/run.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/app/run.js b/js/app/run.js index 00e71a7b0..f91d908f2 100644 --- a/js/app/run.js +++ b/js/app/run.js @@ -7,9 +7,17 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.run(function ($rootScope, $location, Loading, Setup) { +app.run(function ($rootScope, $location, Loading, Setup, Item, Feed, Folder, + Publisher, Settings) { 'use strict'; + // listen to keys in returned queries to automatically distribute the + // incoming values to models + Publisher.subscribe(Item).toChannel('items'); + Publisher.subscribe(Folder).toChannel('folders'); + Publisher.subscribe(Feed).toChannel('feeds'); + Publisher.subscribe(Settings).toChannel('settings'); + // load feeds, settings and last read feed Setup.load(); |