in my application i need to create GUID, that GUID will be work as cookies, so anybody knows how to create GUID in angular-2/typescript or using any angular2 dependency/library.
You even can use npm to generate this for you. Follow this :
npm i guid-typescript --save  And to utilize in your code :
import { Guid } from 'guid-typescript'; export class GuidExample {     public id: Guid;     constructor() {         this.id = Guid.create(); // ==> b77d409a-10cd-4a47-8e94-b0cd0ab50aa1     } } 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With