my code
var url = getApplicationRoot() + '/api/dossier/report/pdfReport?reportId='+reportid;
console.log(url);
$http.get( url, {cache: false} )
.success( function( data )
{
//success(data);
console.log(data);
if(success){
window.open( getApplicationRoot() + '/api/dossier/report/pdfReport?reportId='+reportid);
}
})
I am able to download as pdf ,but its opening in another window and downloading because i given window .open .How can i make in the same window .As like normal download . I am using angular MVC .
Firfox it is working fine .But in Chrome it is opening in new window