File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 11' use strict'
22
33angular .module (' <%= _.camelize(appname) %>App' )
4- .provider ' <%= _.camelize(name) %>' , [() ->
4+ .provider ' <%= _.camelize(name) %>' , [->
55
66 # Private variables
77 salutation = ' Hello'
88
99 # Private constructor
10- Greeter () ->
11- this . greet = () {
10+ class Greeter
11+ @ greet = ->
1212 salutation
1313
1414 # Public API for configuration
15- this . setSalutation = (s ) ->
15+ @ setSalutation = (s ) ->
1616 salutation = s
1717
1818 # Method for instantiating
19- this . $get = () ->
19+ @ $get = ->
2020 new Greeter ()
2121 ]
Original file line number Diff line number Diff line change 11' use strict'
22
33angular .module (' <%= _.camelize(appname) %>App' )
4- .provider ' <%= _.camelize(name) %>' , () ->
4+ .provider ' <%= _.camelize(name) %>' , [ ->
55
66 # Private variables
77 salutation = ' Hello'
88
99 # Private constructor
10- Greeter () ->
11- this . greet = () {
10+ class Greeter
11+ @ greet = ->
1212 salutation
1313
1414 # Public API for configuration
15- this . setSalutation = (s ) ->
15+ @ setSalutation = (s ) ->
1616 salutation = s
1717
1818 # Method for instantiating
19- this . $get = () ->
19+ @ $get = ->
2020 new Greeter ()
21+ ]
You can’t perform that action at this time.
0 commit comments