mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Watch is enough
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user