Watch is enough

This commit is contained in:
Vit Brunner
2014-10-08 22:54:23 +02:00
parent 5b391f3848
commit 73093dc034
@@ -13,7 +13,7 @@ angular.module("sideBySide.controllers", [])
.controller "ComparisonController", [
'$scope', 'poems', 'transformer'
($scope, poems, transformer) ->
$scope.$watchCollection () ->
$scope.$watch () ->
poems.active.length
, () ->
$scope.columns = poems.active.length