A very simple service for working with UUIDs
angular .module('uuidApp', ['lvl.services']) .controller('uuidCtl', ['$scope', 'uuid', function($scope, uuid){ $scope.generateUuid = function() { $scope.new = uuid.new(); $scope.nInfo = new Date(); }; $scope.showEmpty = function() { $scope.empty = uuid.empty(); $scope.eInfo = new Date(); }; }]);