$scope.EditExport = function (invoiceno, srno) {
// var ino = invoiceno.split('/').join(':');
// window.open("#/Export/Edit/" + ino, "_blank");
ExportService.CheckExport(srno).then(function (result) {
if (result.IsSuccess) {
var data = result;
if (data.DataList && data.DataList.length > 0) {
if ($rootScope.userData.branch.toString().toUpperCase()
== data.DataList[0]["branch"].toString().toUpperCase()) {
var ino = invoiceno.split('/').join(':');
if
(data.DataList[0]["tflag"].toString().toUpperCase() == "N") {
window.open("#/Export/Edit/" + ino, "_blank");
}
else {
window.open("#/OnOpeningExport/Edit/" + ino,
"_blank"); //Remain
}
}
}
}
else { alert("Error: " + result.Message); }
}, function (errorMessage) { alert("Error: " + errorMessage); });
};
if i open browser tab before the service call(commented lines) then it will
work.
but after getting service result (
window.open("#/Export/Edit/"+ino,"_blank"); ) not open in new tab.
it will open in new popup window.
how can i solve this?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.