Angular UUID and GUID Generator
<script src="angular.uuid2.js"></script>
or you can install this package from bower
bower install angular-uuid2
var app = angular.module('app',['angularUUID2']);
app.controller('mainCtrl', ['$scope','uuid2', function($scope,uuid2){
}])
app.controller('mainCtrl', ['$scope','uuid', function($scope,uuid2){
$scope.getId = function(){
$scope.id = uuid2.newuuid();
}
}])
app.controller('mainCtrl', ['$scope','uuid2', function($scope,uuid2){
$scope.getId = function(){
$scope.id = uuid2.newguid();
}
}])