Last active
August 7, 2016 17:26
-
-
Save ronapelbaum/41b3911721edd9f3c388278f9cdc84f3 to your computer and use it in GitHub Desktop.
improve your angular 1.x code style (3)
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 () { | |
function MyService(OtherService) { | |
this.foo = function () { | |
OtherService.goo(); | |
} | |
} | |
MyService.$inject = ['OtherService']; | |
angular.module('app').service('MyService', MyService); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment