angular-gravatar-image
v1.0.1
Published
An AngularJS directive for Gravatar image
Downloads
1
Maintainers
Readme
Angular Gravatar Image
An AngularJS directive to show a Gravatar image
Install via NPM
npm install angular-gravatar-image --save
Usage
Include the main file
<script src="../angular-gravatar-image.min.js"></script>
Specify in html
<gravatar-image email="[email protected]"></gravatar-image>
Options
Available Options
- email: Gravatar email
- size: determine image size
- default: default image when an email address has no matching Gravatar image
- forcedefault: force default image to always load
- rating: image rating to determine if an image is appropriate for a certain audience
- ssl: serve Gravatar via SSL
More detail explanation about Gravatar options please click here
Example syntax using all options
<gravatar-image email="[email protected]" size="200" default="404" forcedefault="y" rating="pg" ssl="true"></gravatar-image>