Skip to content
forked from jspaper/ng-uuid

Angular.js service and directive for uuid.

Notifications You must be signed in to change notification settings

leibrug/ng-uuid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-uuid


Angular.js service and directive to generate uuid.

Usage

  • Require module
angular.module('app', ['uuid'])

.controller('mainCtrl', ['uuid', function (uuid) {

	console.info('new uuid', uuid.new());

}]);
  • In view
<div uuid>Hello world</div>

It'll output as below.

<div data-uuid="1de6e2f2-5c16-5572-06ac-abc754d994d2">Hello world</div>

About

Angular.js service and directive for uuid.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%