diff options
| author | mkolodny | 2013-12-10 09:50:31 -0500 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-12-19 13:05:15 +0000 | 
| commit | 14d3e559d45e606a1e96860ebb28d65656ff334a (patch) | |
| tree | 1e53b04af71bba629a6e188b7b43e1e2aba3c68f | |
| parent | 3d156a76e3501ea29fe7d208dc89f0ae89e76fc3 (diff) | |
| download | angular.js-14d3e559d45e606a1e96860ebb28d65656ff334a.tar.bz2 | |
docs($injector): use correct spacing convention for CoffeeScript functions
This convention is exhibited by http://coffeescript.org/ and https://github.com/polarmobile/coffeescript-style-guide#functions.
Closes #5354
| -rw-r--r-- | src/auto/injector.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/auto/injector.js b/src/auto/injector.js index 4eabc2fc..4d4b1b93 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -485,15 +485,15 @@ function annotate(fn) {   * {@link AUTO.$provide#methods_service $provide.service(class)} that is defined as a CoffeeScript class.   * <pre>   *   class Ping - *     constructor: (@$http)-> - *     send: ()=> + *     constructor: (@$http) -> + *     send: () =>   *       @$http.get('/ping')   *   *   $provide.service('ping', ['$http', Ping])   * </pre>   * You would then inject and use this service like this:   * <pre> - *   someModule.controller 'Ctrl', ['ping', (ping)-> + *   someModule.controller 'Ctrl', ['ping', (ping) ->   *     ping.send()   *   ]   * </pre> | 
