I am fairly new to angularjs and am not able to find any documentation or examples for this. What I am looking to do is to extend a basic service so that i can use the metho
Your ExtendedService
should inject the BasicService
in order to be able to access it. Beside that BasicService
is an object literal, so you can't actually call it as function (BasicService()
).
.factory('ExtendedService', function($http, BasicService){
BasicService['method_four'] = function(){};
return BasicService;
}