define [ "base" ], (App) -> App.directive "reviewPanelToggle", () -> restrict: "E" scope: onToggle: '=' ngModel: '=' link: (scope) -> scope.onChange = (args...) -> scope.onToggle(scope.localModel) scope.localModel = scope.ngModel scope.$watch "ngModel", (value) -> scope.localModel = value template: """
"""