Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/ng-randomid
Generate random id strings as an angular factory - packaged as component
https://github.com/binocarlos/ng-randomid
Last synced: 11 days ago
JSON representation
Generate random id strings as an angular factory - packaged as component
- Host: GitHub
- URL: https://github.com/binocarlos/ng-randomid
- Owner: binocarlos
- License: mit
- Created: 2014-02-13T18:14:52.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-13T18:17:31.000Z (almost 11 years ago)
- Last Synced: 2024-04-14T14:36:44.640Z (7 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ng-randomid
===========Generate random id strings as an angular factory - packaged as component
## installation
```
$ component install binocarlos/ng-randomid
```## usage
```js
angular.module('myApp', [
require('ng-randomid')
]).controller('MyAppCtrl', function($scope, $randomid){
$scope.id = $randomid(12);
// $scope.id = 'ejeh3n3nm28d';
})```
## $randomid(char_count)
Return a random id with the given number of characters
## license
MIT