diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 22:05:36 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 22:05:36 +0200 |
commit | c27dab7c808f38135e5b3ed9b8dfac47fc073452 (patch) | |
tree | c4102ccd3167599232e1a16ca659cf23e4dfac61 /js/controller | |
parent | ac653d89d9cd4c47b211f50d2b8a1a501db2d31d (diff) |
add collection view
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/ContentController.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index e09279b25..7d34f04b2 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -9,7 +9,7 @@ */ app.controller('ContentController', function (Publisher, FeedResource, ItemResource, SettingsResource, data, - $route, $routeParams) { + $route, $routeParams, FEED_TYPE) { 'use strict'; // dont cache items across multiple route changes @@ -95,6 +95,10 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data, ItemResource.markItemsRead(ids); }; + this.isFeed = function () { + return $route.current.$$route.type === FEED_TYPE.FEED; + }; + this.autoPage = function () { this.isAutoPagingEnabled = false; |