AngularJS Multi-Avatar Directive
How to Use
Will apply in the following order:
- Facebook ID
- Twitter ID
- Github ID
- Gravatar Email ID or Hash image
- Blank user image
In your HTML, use the following. Depending on what your user has defined, it'll display an avatar:
In your Javascript (coffee):
app = angular;
Find More Information
Reworked and extended Creating Simple Directive in Angular to now include:
- Standardized data attribute naming
- Include Facebook
- Include Twitter
- Include GitHub
- Include Gravatar Email address and Hash support
Install
Bower
bower install angular-multi-avatar
NPM
npm install angular-multi-avatar
License
MIT License, See LICENSE.txt