UNPKG

zettapi_client

Version:

Client side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project

12 lines (10 loc) 297 B
app.controller('entityModalCtrl', function ($uibModalInstance, $scope) { $scope.ok = function () { $scope.add($scope.item, $scope.onBeforeSave, function (err) { if (!err) $scope.$close($scope.item); }); }; $scope.cancel = function () { $scope.$dismiss('cancel'); }; });