Skip to content

Instantly share code, notes, and snippets.

@mahsaml90
mahsaml90 / README.md
Last active October 2, 2020 15:29
Angular 2 Directive to use with Jdenticon

How to use

  1. install Jdenticon using npm install jdenticon --save
  2. import this directive into your intended module and add it to declarations.
  3. then use it in your html file like this:
<svg width="50" height="50" [identiconHash]="hash">
  Fallback text for browsers not supporting inline svg
</svg>