0.0.1 • Published 5 years ago

@9hub/ngx-avatar v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

License

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