NgxUploader
This package provides you with a component for file uploading.
Installation
...
import { NgxUploaderModule } from '@talrace/ngx-uploader';
...
@NgModule({
...
imports: [
...
NgxUploaderModule,
...
],
...
})
export class AppModule {}
Usage
Add tag to html template
<tlr-uploader
uploadAccept="['*']"
(upload)="onUploadImage($event)">
</tlr-uploader>
Implement onUploadImage
onUploadImage(model: UploadModel): void {
//Implementation
}