@9hub/ngx-avatar
v0.0.1
Published
Angular library to handle user avatars.
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/materialIf you have any issue with angular-material installation, please refer to getting-started.
Installing
Using NPM:
npm i @9hub/ngx-avatarUsing Yarn:
yarn add @9hub/ngx-avatarUsage
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
- Angular - The web framework used
- Angular Material - Material design components
- Flex Layout - Angular layout API
- CropperJs - Javascript image cropper
- Ngx Webcam - Angular webcam component
Contributors
License
This project is licensed under the MIT License - see the LICENSE.md file for details
