ng-eldeeb-image-picker
Advanced tools
Comparing version 15.0.0 to 16.0.0
@@ -10,3 +10,3 @@ import { EventEmitter, TemplateRef } from '@angular/core'; | ||
constructor(_fb: FormBuilder, _downloadFileService: DownloadImageService); | ||
private readonly _destroyAll$; | ||
private readonly _destroyRef; | ||
uploadBtn: TemplateRef<any> | undefined; | ||
@@ -13,0 +13,0 @@ imagePreview: TemplateRef<any> | undefined; |
{ | ||
"name": "ng-eldeeb-image-picker", | ||
"description": "This is image picker component made with ❤️", | ||
"version": "15.0.0", | ||
"version": "16.0.0", | ||
"keywords": [ | ||
@@ -20,4 +20,4 @@ "image picker", | ||
"peerDependencies": { | ||
"@angular/common": "^15.0.0", | ||
"@angular/core": "^15.0.0" | ||
"@angular/common": "^16.0.0", | ||
"@angular/core": "^16.0.0" | ||
}, | ||
@@ -24,0 +24,0 @@ "dependencies": { |
@@ -27,2 +27,18 @@ # Eldeeb Image Picker | ||
### Simple case | ||
```js | ||
export class AppComponent implements OnInit { | ||
public readonly imgPicker: FormControl<any> = new FormControl(); | ||
public ngOnInit(): void { | ||
this.imgPicker.valueChanges.subscribe(console.log); | ||
} | ||
public onImageError = ($event: ImagePickerError): void => { | ||
console.log($event); | ||
}; | ||
} | ||
``` | ||
### Simple case | ||
```html | ||
@@ -33,3 +49,3 @@ <image-picker | ||
(error)="onImageError($event)" | ||
></image-picker> | ||
/> | ||
``` | ||
@@ -36,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
128967
144
1