vladdancer
12/2/2013 - 9:11 AM

From http://stackoverflow.com/questions/17389291/angularjs-with-oop-inheritance-in-action

(function () {

function ParentService(arg1) {
   this.arg1 = arg1;
}

function ChildService(arg1, arg2) {
   ParentService.call(this, arg1);
   this.arg2 = arg2;
}

ChildService.prototype = new ParentService();

app.service('ChildService', ChildService);

}());