Ruleset:
- Will use facebook image first
- Will user github image if no facebook ID, but has a github username
- Will fallback to gravatar image (which itself will fallback to a blank user image)
In your HTML, use the following. Depending on what your user has defined, it'll display an avatar:
<div ng-app='YourApp' ng-controller='UsersController'>
<multi-avatar data-facebook-id='' data-github-username='' data-email=''>
</div>
In your Javascript (coffee):
YourApp = angular.module("Centrifuge", ["multi-avatar"]);
YourApp.controller "UsersController", ($scope, 'multi-avatar')
TODO: fill in link to published article
- Integration with Bower
MIT License, See LICENSE.txt