From 71269582fa0d07ff91ad80a04e39428ff735748f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 19 Nov 2014 16:43:14 +0100 Subject: allow to add feeds from recommended sites --- js/controller/ExploreController.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'js/controller/ExploreController.js') 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 * @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 -- cgit v1.2.3