generator-ngfs
Version:
Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node
22 lines (16 loc) • 379 B
text/coffeescript
'use strict'
angular.module('<%= scriptAppName %>')
.provider '<%= cameledName %>', [->
# Private variables
salutation = 'Hello'
# Private constructor
class Greeter
@greet = ->
salutation
# Public API for configuration
@setSalutation = (s) ->
salutation = s
# Method for instantiating
@$get = ->
new Greeter()
]