Skip to content

jwo/angular-multi-avatar-directive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AngularJS Multi Avatar Directive

How to Use

Ruleset:

  1. Will use facebook image first
  2. Will user github image if no facebook ID, but has a github username
  3. 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')

Find More Information

TODO: fill in link to published article

TODO

  • Integration with Bower

License

MIT License, See LICENSE.txt

About

Angular Directive: facebook, github, gravatar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published