I am downloading a text file from server.
I want to execute the next command once the file has been downloaded.
I am doing this :
window.open(location.pathname+'api/generateFile','_blank');
$scope.searchBls();
Is there a way to make sure that $scope.searchBls() is called only once window.open has finished?
Thanks