t-ho / ngx-gravatar

Angular Gravatar Directive

Home Page:https://tdev.app/ngx-gravatar/demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm version GitHub stars CI Testing codecov npm npm bundle size (minified + gzip) code style: prettier license

ngx-gravatar

The gravatar directive for Angular applications.

This directive supports two avatar sources:

  • Custom image
  • Gravatar

By default, the custom image has higher priority. If it is invalid, the Gravatar will be used. The priority can be changed by setting preferGravatar input or override the default configuration (see below).

Angular Gravatar Directive

Visit here for more information about Gravatar.

Demo

Live demo here.

If you like ngx-gravatar, please give it a ⭐ on github

Installation

Install ngx-gravatar via NPM, using the command below.

npm install --save ngx-gravatar
# or
yarn add ngx-gravatar
Angular Installation command
Angular 13 npm i --save ngx-gravatar
Angular 11 npm i --save ngx-gravatar@11.0.0
Angular 10 npm i --save ngx-gravatar@10.0.0
Angular 9 npm i --save ngx-gravatar@9.1.0
Angular 8 npm i --save ngx-gravatar@8.1.0
Angular 6 & 7 npm i --save ngx-gravatar@7.2.2
Angular 4 & 5 npm i --save ngx-gravatar@3.0.5

See full documentation here

About

Angular Gravatar Directive

https://tdev.app/ngx-gravatar/demo

License:MIT License


Languages

Language:TypeScript 76.5%Language:HTML 15.9%Language:JavaScript 6.3%Language:CSS 1.0%Language:SCSS 0.2%Language:Shell 0.1%