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

20 lines (19 loc) 402 B
app.directive('zlFile', function(zapiPath) { return { restrict: 'A', scope: { item: '=', var: '=', docid: '=' }, replace: false, link: function (scope, element, attrs) { if (scope.docid) { if (scope.docid._id) { scope.docid = scope.docid._id; } } }, templateUrl: zapiPath + '/directives/document/file.html' }; });