angular-multi-avatar-directive

0.2.0 • Public • Published

AngularJS Multi-Avatar Directive

How to Use

Will apply in the following order:

  1. Facebook ID
  2. Twitter ID
  3. Github ID
  4. Gravatar Email ID or Hash image
  5. Blank user image

In your HTML, use the following. Depending on what your user has defined, it'll display an avatar:

<multi-avatar 
    data-facebook-id='' data-twitter-id='' data-github-id='' data-gravatar-id=''
>

In your Javascript (coffee):

app = angular.module("yourmodule", ["multi-avatar"]);

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.00

Package Sidebar

Install

npm i angular-multi-avatar-directive

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • angleman