I need help - how to call myFunction
from AngularJS in area success?
var app = angular.module('app', []);
app.controller("MyController", function($scope, $http) {
$scope.myFunction = function() {
alert("HI");
};
$http.get('myWS.asmx/myService?callback=?', {
params: {
userName: 'test',
procedureName: "EXECUTE myProcedure"
}
})
.success(
function(data) {
//CALL MY FUNCTION HERE!
})
.error(
function() {
alert("ERROR");
}
);
});
I've tried several times but nothing; any solution or example?