Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a folder for services by default #107

Open
unregistered opened this issue Jun 15, 2014 · 1 comment
Open

Consider adding a folder for services by default #107

unregistered opened this issue Jun 15, 2014 · 1 comment

Comments

@unregistered
Copy link

I didn't see any folder for services and had to create it, which took awhile to figure out.

For future reference it involves adding the folder assets/apps/ang-app/services

Making app.services a dependency in ang-app/main.coffee:

angular.module('app', [
    'app.controllers'
    'app.directives'
    'app.filters'
    'app.services'
    'firebase'
    'ngRoute'
    'ngProgress'
]).config ['$routeProvider', '$locationProvider', ($routeProvider, $locationProvider) ->

Adding a file named module.coffee under assets/apps/ang-app/services with the contents:

define ['angular'], (angular) ->
    angular.module 'app.services', []

Then adding a line to kickstrap.coffee (which seems like something the user shouldn't have to do; things will break if I update kickstrap):

# Build angular app core
k$.appCore = []
k$.appCore.push 'ks:ang-app/controllers/' + ctrl for ctrl in k$.settings.angular.controllers
k$.appCore.push 'ks:ang-app/directives/' + dctv for dctv in k$.settings.angular.directives
k$.appCore.push 'ks:ang-app/filters/' + filter for filter in k$.settings.angular.filters
k$.appCore.push 'ks:ang-app/services/' + service for service in k$.settings.angular.services
@adamjgrant
Copy link
Owner

Thanks, I'll add this to my Asana.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants