After 5hrs of struggle I decide it to ask question to see if someone can help me. I use Angular 2 for front end of application and now I have a problem to upload image on my server. Problem is after uploading because my page is reloading again. I use angular2-image-upload. In app.module i add this:
@NgModule({
imports: [
...,
ImageUploadModule.forRoot(),
...
]
})
In html file I have this:
<image-upload
[max]="100"
[url]="'http://myurl'"
[buttonCaption]="'Select Images!'"
[dropBoxMessage]="'Drop your images here!'"
></image-upload>
And everything is ok, image was upload, but in console I got this information
[WDS] App updated. Recompiling..
and page is reloading.
Can anyone knows why this happening?
Thanks in advance