Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.factory('someService', function() {
- var someService = { //build this object however you want
- add: function() {
- },
- save: function() {
- }
- };
- return someService; //return the object
- }); //end factory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement