angular-uuid4

Angular service that generates UUIDs / GUIDs
1 person uses it
Author: 165790?v=3 monicao

angular-uuid4

Angular service that generates RFC4122 version 4 UUIDs / GUIDs.

Sample UUID: f7e81995-1a52-48a4-88d1-f979e1917b29

Based on pnegri's npm package: https://github.com/pnegri/uuid-js

Usage

Require the module in your app and call uuid4.generate().

Example:

You can also validate uuids.

This returns true if the uuid is a valid v4 uuid.

Collisions

There are reports of Math.random() not working properly on some systems. This may causes collisions (UUIDs that are the same).

comments powered by Disqus
This page was last updated about 2 years ago.