diff options
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/js/build/app.js b/js/build/app.js index 52c6d8d29..e0472f32c 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -66,19 +66,19 @@ var $__build_47_app__ = function () { }; }; $routeProvider.when('/items', { - controller: 'ContentController', + controller: 'ContentController as Content', templateUrl: 'content.html', resolve: getResolve(feedType.SUBSCRIPTIONS) }).when('/items/starred', { - controller: 'ContentController', + controller: 'ContentController as Content', templateUrl: 'content.html', resolve: getResolve(feedType.STARRED) }).when('/items/feeds/:id', { - controller: 'ContentController', + controller: 'ContentController as Content', templateUrl: 'content.html', resolve: getResolve(feedType.FEED) }).when('/items/folders/:id', { - controller: 'ContentController', + controller: 'ContentController as Content', templateUrl: 'content.html', resolve: getResolve(feedType.FOLDER) }).otherwise({ redirectTo: '/items' }); @@ -176,15 +176,13 @@ var $__build_47_app__ = function () { } ]); app.controller('ContentController', [ - '$scope', 'Publisher', 'FeedResource', 'ItemResource', 'SettingsResource', 'data', - function ($scope, Publisher, FeedResource, ItemResource, SettingsResource, data) { + function (Publisher, FeedResource, ItemResource, SettingsResource, data) { 'use strict'; - $scope.Content = this; ItemResource.clear(); Publisher.publishAll(data); this.getItems = function () { |