summaryrefslogtreecommitdiffstats
path: root/js/controller/ExploreController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/ExploreController.js')
-rw-r--r--js/controller/ExploreController.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/controller/ExploreController.js b/js/controller/ExploreController.js
index d189bfbe2..fb2051b94 100644
--- a/js/controller/ExploreController.js
+++ b/js/controller/ExploreController.js
@@ -7,9 +7,14 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.controller('ExploreController', function (sites) {
+app.controller('ExploreController', function (sites, $rootScope) {
'use strict';
this.sites = sites.data;
+
+ this.subscribeTo = function (url) {
+ $rootScope.$broadcast('addFeed', url);
+ };
+
}); \ No newline at end of file