Skip to content

mikedatsko/ng2-uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ng2-Uuid

Setup

app.module.ts

import { NgModule } from '@angular/core';
import { UuidModule } from 'ng2-uuid';

@NgModule({
  imports: [
    UuidModule
  ]
})
export class AppModule { }

app.component.ts

import { Component } from '@angular/core';
import { Uuid } from 'ng2-uuid';

@Component({
  selector: 'app-root',
  template: `
    Your uuid code is: {{uuidCode}}
  `
})
export class AppComponent {
  uuidCode: string = '';

  constructor(
    private uuid: Uuid
  ) {
    this.uuidCode = this.uuid.v1();
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published