@9hub/ngx-avatar

Angular library to handle user avatars.

Usage no npm install needed!

<script type="module">
  import 9hubNgxAvatar from 'https://cdn.skypack.dev/@9hub/ngx-avatar';
</script>

README

Angular Avatar

Angular library to get and edit user avatars.

Prerequisites

To use this library you need to have installed angular-material and flex-layout.

Using NPM:

npm i @angular/material @angular/cdk
npm i @angular/flex-layout 

Using Yarn:

yarn add @angular/material @angular/cdk
yarn add @angular/flex-layout 

If you have angular-cli installed, you can install angular-material as below:

ng add @angular/material

If you have any issue with angular-material installation, please refer to getting-started.

Installing

Using NPM:

npm i @9hub/ngx-avatar

Using Yarn:

yarn add @9hub/ngx-avatar

Usage

You need import our module and add to your Angular's main module.

import { NgxAvatarModule } from '@9hub/ngx-avatar'

@NgModule({
  imports: [
    ...
    NgxAvatarModule
    ...
  ]
})

Using our compnent on you Angular template:

<ngx-avatar [avatarSrc]="myAvatar"></ngx-avatar>

Built With

Contributors

Erik Romero Edwin Encinas

License

This project is licensed under the MIT License - see the LICENSE.md file for details