mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-05 05:34:43 +00:00
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
This commit is contained in:
parent
3d156a76e3
commit
14d3e559d4
1 changed files with 3 additions and 3 deletions
|
|
@ -485,15 +485,15 @@ function annotate(fn) {
|
||||||
* {@link AUTO.$provide#methods_service $provide.service(class)} that is defined as a CoffeeScript class.
|
* {@link AUTO.$provide#methods_service $provide.service(class)} that is defined as a CoffeeScript class.
|
||||||
* <pre>
|
* <pre>
|
||||||
* class Ping
|
* class Ping
|
||||||
* constructor: (@$http)->
|
* constructor: (@$http) ->
|
||||||
* send: ()=>
|
* send: () =>
|
||||||
* @$http.get('/ping')
|
* @$http.get('/ping')
|
||||||
*
|
*
|
||||||
* $provide.service('ping', ['$http', Ping])
|
* $provide.service('ping', ['$http', Ping])
|
||||||
* </pre>
|
* </pre>
|
||||||
* You would then inject and use this service like this:
|
* You would then inject and use this service like this:
|
||||||
* <pre>
|
* <pre>
|
||||||
* someModule.controller 'Ctrl', ['ping', (ping)->
|
* someModule.controller 'Ctrl', ['ping', (ping) ->
|
||||||
* ping.send()
|
* ping.send()
|
||||||
* ]
|
* ]
|
||||||
* </pre>
|
* </pre>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue