PatrickJS / angular-md5

md5 for Angular.js and Gravatar filter
MIT License
132 stars 55 forks source link

how to integrate angular-md5 in angular 2 typscript? #12

Open maxto024 opened 8 years ago

maxto024 commented 8 years ago

how to integrate angular-md5 in angular 2 typscript plz i need so much

jakechan2012 commented 8 years ago

@maxto024 you can create a MD5 service by yourself temporary like this:

import { Injectable }    from '@angular/core';

@Injectable()
export class MD5Service {
  createHash(str: string): string {
    // @gdi2290 's code here
  }
}

Finally, I hope the author @gdi2290 can update this pkg

PatrickJS commented 8 years ago

@jakechan2012 what should be updated? I can update it now to Angular 2

jakechan2012 commented 8 years ago

@gdi2290 i just hope this pkg can support angular2

PatrickJS commented 8 years ago

@jakechan2012 would you be okay with the npm namespace @angularclass/md5?