//This addtionalB use for Additional Building
$scope.additionalB = data;
}).error(function (data, status, headers, config) {
alert("error:" + status);
})
$scope.showBuilding = function () {
console.log($scope.selectedBuilding.originalObject.NAME);
console.log($scope.selectedBuilding.originalObject.BLDG_NBR);
$scope.edit25 = $scope.selectedBuilding.originalObject.NAME;
$scope.edit1 = $scope.selectedBuilding.originalObject.BLDG_NBR;
}
$scope.addNewbuild = function () {
var newItemNo = $scope.additionalB.length + 1;
{
$scope.additionalB.push({ ALERTID: +myID });
}
console.log($scope.additionalB)
};
$scope.removebuilding = function () {
var lastItem = $scope.additionalB.length - 1;
$scope.additionalB.splice(lastItem);
}
I have issue with angucomplete-alt. I want to use additional fields and autocomplete alt. But I Can't display my value in controller. So that i can Post value on API.
//Controller $http.get(settings.WebApiBaseUrl + 'api/bldg/' + myID) .success(function (data) {
$scope.addNewbuild = function () { var newItemNo = $scope.additionalB.length + 1; { $scope.additionalB.push({ ALERTID: +myID }); } console.log($scope.additionalB)
I have issue with angucomplete-alt. I want to use additional fields and autocomplete alt. But I Can't display my value in controller. So that i can Post value on API.