/// /// module Configs{ export var EableEdit = controller('EableEdit', ['$scope', ($scope) => { $scope.editRow = (entity)=>{ console.log(entity); $scope.$emit('editRow', entity); } $scope.deleteRow = (entity) =>{ $scope.$emit('deleteRow', entity); } }]); }