I use the same structure as  Eric and it is really working well. 

* - The annoying bit is that when I add a new component or page, I have to 
add the relevant js in index.html *

Just on this I use the yeoman grunt file and I have added grunt-file-blocks 
<https://www.npmjs.org/package/grunt-file-blocks> to take care of adding 
new js files to the index - something like this:

// Adds script elements to the HTML file
    fileblocks: {
      html: {
        src: 'app/index.html',
        blocks: {
          'scripts': {
            src: [
              'scripts/app.js', //make sure the main app module appears 
first
              'scripts/**/*.js'
            ],
            cwd: 'app'
          }
        }
      }
    },


This really encourages me to split out each module, controller etc. into 
lots of separate js files, which make life a lot easier. I just run 'grunt 
serve' again and all new files are added to my index.html



On Wednesday, June 11, 2014 10:03:58 PM UTC+1, Eric Eslinger wrote:
>
>
> The annoying bit is that when I add a new component or page, I have to add 
> the relevant js in index.html and remember to add the dependency in app.js 
> (and import the scss in main.scss)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to