AngularJS: Create a custom service