I have a angular js service
angular.module('abc', ['pqr'])
.factory('testService', ['$soap',function($soap){
var base_url = "http://ift.tt/2kkTBPX";
return {
helloRequest: function(method, parameters){
return $soap.post(base_url, method, parameters);
}
}
}]);
I want to test this service by passing parameter and running it. But It didn't help. I looked for other answers and found some thing like below. I added it in my service file:
angular.injector(['ng', 'VOC']).invoke(function (testService) {
testService.ClarabridgeRequest(words,{projectName: InDesign});
});
But even this doesn't help. I tried running it using "Node [file_name] " but it shows ReferenceError: angular is not defined. I want to know how can I test my service. Weather on browser or from console. I am new to Angular js.
Aucun commentaire:
Enregistrer un commentaire