zettapi_client
Version:
Admin panel and client-side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project.
17 lines • 481 B
JavaScript
app.directive('apiMenuItem', function() {
return {
restrict: 'E',
scope: {
closeMenu: '&?',
isAdmin: '&?'
},
replace: true,
templateUrl: 'directives/apiMenuItem/apiMenuItem.html',
controller: function($scope, $auth) {
if (typeof $scope.isAdmin === 'function') return;
else $scope.isAdmin = $auth.isAdmin;
if (typeof $scope.closeMenu === 'function') return;
else $scope.closeMenu = function() { return; };
}
};
});