JS.$.ajax({
url : 'http://localhost:8080/getdata,
type: 'GET',
// form data
cache : false,
success: function(response){
var result = response;
}
});
This above code snippet is written in javascript file, Need to be used in vm, Do we have any way to pass this result value or do we need to do it in java layer only ? please suggest the way