How to bind single row in dropdownlist angularjs mvc?
When I click generate button the dropdownlist should bind as none.
I am getting the data from database for dropdownlist like this for GetAllType. When i click generate it should bind the value without selecting the dropdownlist.
$scope.GetAllType = function () {
$http({
method: "get",
url: "http://localhost:64137/Pack/GetAllType",
}).then(function (response) {
$scope.INGEntities3 = response.data;
}, function () {
alert("Error Occur");
})
};
$(document).ready(function () {
$('#example').DataTable();
});
$scope.generate = function () {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth() + 1; //January is 0!
var hh = today.getHours();
var mn = today.getMinutes();
var ss = today.getSeconds();
var yyyy = today.getFullYear();
if (dd < 10) {
dd = '0' + dd;
}
if (mm < 10) {
mm = '0' + mm;
}
var today1 = 'PTS' + dd + mm + yyyy + hh + mn + ss;
$scope.tracking = today1;
$scope.INGEntities3 = response.data[Description];
}