0
$scope.fetchDataForEditInvoice = function (row)
{
var index = $scope.gridOptions.data.indexOf(row.entity);
var InvoiceId = $scope.gridOptions.data[index].InvoiceId;
var status = angularService.FetchDataForEditInvoice(InvoiceId);
status.then(function (invoiceData) {
console.log(invoiceData);
window.location.href = "/Invoice/AddInvoice";
$scope.InvoiceDetails = invoiceData.data.InvoiceDetails;
},
function() {
alert('Error in fetching record.');
})
}
點擊更新按鈕我打電話以下功能,我得到的數據,但我怎麼可以分配它更新頁面上的控件當我點擊更新按鈕我有數據要更新,但它會得到清除當我移動到更新頁面在angularjs
這不適用於我,它給出了undefined – user5502530