module Sfx { export interface IActionScope extends angular . IScope { action : Action ; ok : ( ) => void ; cancel : ( ) => void ; } export class ActionController { static $inject = [ "$scope" , "$uibModalInstance" , "action" ] ; constructor ( $scope , $uibModalInstance , action ) { $scope . action = action ; $scope . ok = ( ) => { $uibModalInstance . close ( ) ; } ; $scope . cancel = ( ) => { $uibModalInstance . dismiss ( ) ; } ; } } ( function ( ) { let module = angular . module ( "actionController" , [ ] ) ; module . controller ( "ActionController" , [ "$scope" , "$uibModalInstance" , "action" , ActionController ] ) ; } ) ( ) ; }