mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Watch poem collection in controller
This commit is contained in:
@@ -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