app.factory('Greeter', ['$resource',function($resource){
return $resource(
'http://123.com/processor.php?'+'myvar=1066',
{callback: 'JSON_CALLBACK'},
{
query: {method:'GET',isArray:true}
});
}]);
I tried to pass a simple static variable into a php file to get call back value yet, its seem not pass correctly with the way I use above. Since the chrome inspector shows that
Query String Parametersview parsed
callback=JSON_CALLBACK
I wonder what is the right way to do it?
Thank You