Hi,
based upon below url i am going to do one functionality
in above url after inserting records values are not clearing and also relevant alert message is not displaying
it was displaying undefined alert message
could you please help me
var getData = myService.AddSt(formData);
getData.then(function (msg) {
debugger
getData.then(function (msg) {
$scope.msg = msg.data;
if (msg.data == "State added Successfully") {
ClearFields();
}
else {
$scope.Name = $scope.Name;
}
alert(msg.data);
}, function (msg) {
alert(msg.data);
$scope.msg = msg.data;
});
$scope.msg = msg;
});