Hi Piyush, Wow, that's a block of text. I think that I understood what you are asking. What you want is actually quite simple. don't put the controllers in the router, but instead, put them in your templates using the controller syntax. What you can't do in NG1 is dynamically loading the actual JS. I you include script tags in your templates, those will get stripped out. So you have to make sure all your controllers are pre-loaded, or use something like ocLazyLoad to dynamically load modules. However, I think that for small to medium projects (your own code <250Mb minified) it's more efficient to use a build step to include all your code in 1 go. (look at gulp/grunt for this)
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.
