Skip to content

Commit 86aefe5

Browse files
dhagemanpassy
authored andcommitted
fix(templates): correct coffee provider template
Close #374
1 parent a45b71c commit 86aefe5

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
'use strict'
22

33
angular.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
]
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
'use strict'
22

33
angular.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+
]

0 commit comments

Comments
 (0)