diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 16:43:14 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 16:43:14 +0100 |
commit | 71269582fa0d07ff91ad80a04e39428ff735748f (patch) | |
tree | bbee92d6ca1d29017ed89b9a62ba1b22135c531f /js/controller | |
parent | 5658386300d4315065484cea3517f9cea87bff0f (diff) |
allow to add feeds from recommended sites
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/ExploreController.js | 7 |
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 |