angularjs

Most of the code samples that you'll find regarding bootstrapping Angular JS is to do it declarative such as html ng-app="" You can name your app or leave it blank if you only have 1 app (I find that in most cases, 1 app is enough although you can have multiple controller if needed). What if you want to get away from the declarative approach and do all the App bootstrapping in JavaScript? I find that the code above works but is not flexible especially on large-scale applications where you have a "layout" template and you know ahead of time that you're not going to use Angular JS on every sin…