Skip to content

MBehtemam/angular-uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Angular UUID and GUID Generator

Angular UUID and GUID Generator

How to use

1. include angular.uuid2.js or angular.uuid2.min.js

<script src="angular.uuid2.js"></script>

or you can install this package from bower

bower install angular-uuid2

2

var app = angular.module('app',['angularUUID2']);

3. Inject into your controller

app.controller('mainCtrl', ['$scope','uuid2', function($scope,uuid2){

}])

4.1. now you can get UUID

app.controller('mainCtrl', ['$scope','uuid', function($scope,uuid2){
	$scope.getId = function(){
		$scope.id = uuid2.newuuid();
	}
}])

4.2. or GUID

app.controller('mainCtrl', ['$scope','uuid2', function($scope,uuid2){
	$scope.getId = function(){
		$scope.id = uuid2.newguid();
	}
}])

About

Angular Service for Creating UUID and GUID

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published