Skip to content

Instantly share code, notes, and snippets.

@vladdancer
Created December 2, 2013 09:11
Show Gist options
  • Save vladdancer/7746915 to your computer and use it in GitHub Desktop.
Save vladdancer/7746915 to your computer and use it in GitHub Desktop.
(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);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment