UNPKG

generator-easy

Version:

An EASY stack generator, Express Angular Stylus Yeoman

22 lines (16 loc) 393 B
'use strict' angular.module('<%= _.camelize(appname) %>App') .provider '<%= _.camelize(name) %>', [-> # Private variables salutation = 'Hello' # Private constructor class Greeter @greet = -> salutation # Public API for configuration @setSalutation = (s) -> salutation = s # Method for instantiating @$get = -> new Greeter() ]