0.0.17 • Published 7 years ago

ngx-photo-input v0.0.17

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

ngx-photo-input

Photo Input Component for Angular 4

How to Install

npm install ngx-photo-input@0.0.17

How does it appear?

alt text

How To Use

In the Module Declare NGX Photo Input Component

import { PhotoInputComponent } from "ngx-photo-input";

@NgModule({
  declarations: [
                 PhotoInputComponent
                 ]
})

In Your Template

<input-photo id="userphoto" [(photoURL)]="users.photoURL" 
name = "userphoto" #userphoto="ngModel" [(ngModel)]="users.photo"></input-photo>

photoURL: The url of default or current photo

The files that are accepted

gif, png, bmp, jpeg, jpg.

Example for detection of error because of invalide File

<span *ngIf="userphoto.errors.validatePhoto">
Photo must be a file of type: jpeg, bmp, png.
</span>
0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago