Skip to content

A simple angular module to mimic C# Guid NewGuid() and Empty.

License

Notifications You must be signed in to change notification settings

mike-w-kelly/ngGuid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngGuid

A simple Guid generator based on this SO discussion: http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript.

##Install You can install this package from bower:

bower install angular-guid --save

And add the script reference:

<script src="bower_components/angular-guid/guid.min.js"></script>

##Load module into your ng application

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

##Inject into your controller or service

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

}])

##Usage Using newGuid() or empty:

app.controller('mainCtrl', ['$scope','Guid', function($scope, Guid){
	console.log('New Guid: ' + Guid.newGuid());
    console.log('Empty Guid: ' + Guid.empty);
}])

About

A simple angular module to mimic C# Guid NewGuid() and Empty.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%