Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular generate guid

>> npm i guid-typescript --save

import { Guid } from 'guid-typescript';
export class GuidExample {
    public id: Guid;
    constructor() {
        this.id = Guid.create(); // ==> b77d409a-10cd-4a47-8e94-b0cd0ab50aa1
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #generate #guid
ADD COMMENT
Topic
Name
3+7 =