Angular 5 must click to continue after HTTP Post request
Clash Royale CLAN TAG #URR8PPP Angular 5 must click to continue after HTTP Post request I am working on an Angular 5 component that includes "ngx-file-drop" and "ngx-spinner" modules. The issue appears after the upload of a file via my API. The file is correctly uploaded, and on my subscribe function, it shows correctly the console.log line but not the others, so I have to click on the screen to continue. in the code below, I tried to add an eventEmitter to handle the and of the upload. It is correctly triggered but the "this.spinner.hide() and this.entryFile = null" are not executed until I click on the screen. import { Component, OnInit, EventEmitter } from '@angular/core'; import { FileSystemDirectoryEntry, UploadFile, FileSystemFileEntry, UploadEvent } from 'ngx-file-drop'; import { TranslateService } from '@ngx-translate/core'; import {NgxSpinnerService} from 'ngx-spinner'; import { HttpClient } from '@angular/commo...