Skip to content

Commit

Permalink
fix(templates): correct coffee provider template
Browse files Browse the repository at this point in the history
Close #374
  • Loading branch information
dhageman authored and passy committed Sep 24, 2013
1 parent a45b71c commit 86aefe5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions templates/coffeescript-min/service/provider.coffee
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
'use strict'

angular.module('<%= _.camelize(appname) %>App')
.provider '<%= _.camelize(name) %>', [() ->
.provider '<%= _.camelize(name) %>', [->

# Private variables
salutation = 'Hello'

# Private constructor
Greeter () ->
this.greet = () {
class Greeter
@greet = ->
salutation

# Public API for configuration
this.setSalutation = (s) ->
@setSalutation = (s) ->
salutation = s

# Method for instantiating
this.$get = () ->
@$get = ->
new Greeter()
]
11 changes: 6 additions & 5 deletions templates/coffeescript/service/provider.coffee
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
'use strict'

angular.module('<%= _.camelize(appname) %>App')
.provider '<%= _.camelize(name) %>', () ->
.provider '<%= _.camelize(name) %>', [->

# Private variables
salutation = 'Hello'

# Private constructor
Greeter () ->
this.greet = () {
class Greeter
@greet = ->
salutation

# Public API for configuration
this.setSalutation = (s) ->
@setSalutation = (s) ->
salutation = s

# Method for instantiating
this.$get = () ->
@$get = ->
new Greeter()
]

0 comments on commit 86aefe5

Please sign in to comment.