UNPKG

@hlpupo/ng2-google-letter-avatar

Version:
42 lines (25 loc) 899 B
# Ng2GoogleLetterAvatar V 1.0.0 ![letter-avatar](https://raw.githubusercontent.com/hlpupo/ng2GoogleLetterAvatar/master/src/assets/demo.jpg) ```bash install npm install --save ng2-google-letter-avatar ``` The main idea is create one avatar as the same google style using material colors. ## How tu use ```bash import { LetterAvatarModule } from 'ng2-google-letter-avatar'; ``` In your module ```bash import: [ LetterAvatarModule ] ``` ## Implementation ```bash <ng-google-letter-avatar [firstName]="contact.firstName" [lastName]="contact.lastName" shape="circle"></ng-google-letter-avatar> <ng-google-letter-avatar firstName="first" lastName="lastName" shape="circle"></ng-google-letter-avatar> ``` ## GitHub [https://github.com/hlpupo/ng2GoogleLetterAvatar](https://github.com/hlpupo/ng2GoogleLetterAvatar). ## Autor [@hlpupo](https://github.com/hlpupo) ## Licence MIT