mirror of
https://github.com/wassname/side-by-side.git
synced 2026-10-29 13:41:25 +08:00
Watch poem collection in controller
This commit is contained in:
1 parent
9a06722705
commit
f2c4cbdcba
1 file changed
+2
-2
@@ -25,8 +25,8 @@ angular.module("sideBySide.controllers", [])
|
||||
min = 1
|
||||
max = 5
|
||||
|
||||
$scope.$watch () ->
|
||||
poems.getActive().length
|
||||
$scope.$watchCollection () ->
|
||||
poems.getActive()
|
||||
, () ->
|
||||
active = poems.getActive()
|
||||
|
||||
|
||||
Reference in new issue
Block a user