Watch poem collection in controller

This commit is contained in:
Vit Brunner
2014-10-12 15:40:06 +02:00
parent 9a06722705
commit f2c4cbdcba
@@ -25,8 +25,8 @@ angular.module("sideBySide.controllers", [])
min = 1
max = 5
$scope.$watch () ->
poems.getActive().length
$scope.$watchCollection () ->
poems.getActive()
, () ->
active = poems.getActive()