Thanks Sander, So in my html I have something like:
<script src="scripts/main/myParentApp.js"></script> <script src="scripts/helper/newChildApp.js"></script> But the routes defined in newChildApp.js appears to not be registered (well because they never work). I feel as if newChildApp registrations are being done in a different scope. Is there any debugging you could suggest I try ? Thanks again. On Wednesday, October 7, 2015 at 9:25:39 PM UTC-7, Sander Elias wrote: > > Hi Doug, > > I was confused by your naming of things. Normally, you include children > into your parent app. That makes sure the running order is correct. I have > build applications in exactly that fashion. > > answers: > > 1. Technically, yes. However, I strongly advise to inject it anyway, > so you(or the person doing maintenance on your app) knows it is an > required > resource. > 2. Yes you can create routes this way. Done it many times already. > 3. Again, yes, it is enough. However, as your app grows, and modules > keep getting added, you should consider using a build tool that takes care > of this automatically. It takes a small investment of your time to learn a > tool like gulp, but it will pay back manifold. > > With kind regards > Sander > > -- 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.
