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

11 lines 348 B
app.directive('entityView', function() { return { restrict: 'E', scope: true, replace: false, link: function(scope, element, attrs) { scope.contentUrl = 'entity/' + scope.entityName + '/' + scope.entityName + '.view.html'; }, template: '<div ng-include="contentUrl"></div>' }; });