diff options
Diffstat (limited to 'js/controller/ExploreController.js')
-rw-r--r-- | js/controller/ExploreController.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/controller/ExploreController.js b/js/controller/ExploreController.js index 9de6035e7..d7f869eaf 100644 --- a/js/controller/ExploreController.js +++ b/js/controller/ExploreController.js @@ -7,11 +7,15 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.controller('ExploreController', function (sites, $rootScope) { +app.controller('ExploreController', function (sites, $rootScope, FeedResource) { 'use strict'; this.sites = sites; + this.feedExists = function (url) { + return FeedResource.get(url) !== undefined; + }; + this.subscribeTo = function (url) { $rootScope.$broadcast('addFeed', url); }; |