Last active
September 16, 2016 17:07
-
-
Save mandelbro/ea7849e82e85a9ee646a7b2de83cda74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function ( app ) { | |
'use strict'; | |
angular.module('PeachDelivery') | |
.factory("DeployService", DeployService); | |
DeployService.$inject = []; | |
function DeployService () { | |
// define the public facing api for this service | |
var service = { | |
'publicMethod' : publicMethod | |
}; | |
return service; | |
// public methods | |
function publicMethod () { | |
// I can be called from other modules | |
// But only I can call the method below | |
privateMethod(); | |
} | |
// private methods | |
function privateMethod () { | |
// I can only be called by functions in this service | |
} | |
} | |
})( window.app ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment