summaryrefslogtreecommitdiffstats
path: root/js/app
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-18 22:56:44 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-18 22:56:44 +0200
commitded252d29e99e068ea341506129e47a05e053a24 (patch)
treed91167136238df80d6d638c1243bb1aa29058460 /js/app
parent2459002dcc070dcb66b2a44c237b87e8a1b8e968 (diff)
register publisher
Diffstat (limited to 'js/app')
-rw-r--r--js/app/run.js10
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();