Answers for "angular generate guid"

0

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
    }
}
Posted by: Guest on February-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language