ability to subscribe to a feed

This commit is contained in:
Athou
2013-03-24 13:11:05 +01:00
parent 17fe01ade4
commit fb40ced8a1
16 changed files with 828 additions and 9 deletions

View File

@@ -8,14 +8,14 @@ module.run(function($rootScope) {
});
module.controller('CategoryTreeCtrl', function($scope, $routeParams, $location,
CategoryService) {
SubscriptionService) {
$scope.$on('$routeChangeSuccess', function() {
$scope.selectedType = $routeParams._type;
$scope.selectedId = $routeParams._id;
});
$scope.root = CategoryService.get();
$scope.SubscriptionService = SubscriptionService;
var unreadCount = function(category) {
var count = 0;
@@ -76,7 +76,7 @@ module.controller('CategoryTreeCtrl', function($scope, $routeParams, $location,
};
$scope.$on('mark', function(event, args) {
mark($scope.root, args.entry)
mark($scope.SubscriptionService.subscriptions, args.entry)
});
});