Learn how you can manually bootstrap AngularJS applications and initialize them with asynchronously loaded JSON data.
If you want to bootstrap an AngularJS application with data from your backend, e.g. some essential configuration data, you basically have two main options. You can either …embed the data in the HTML document, orfetch it by making an additional HTTP request.
Via Jan Hesse