Appverse/appverse-web-html5-core — pull request #10 by jramcast (2014-12-02 15:18:50+00:00)
Title: Appng 89 - Find a way to load JSON config files embedded in JS to prevent extra requests

Settings are now loaded within a .js file in the demo application.

A helper object called 'AppInit' has been created to ease the way developers specify settings. This object also supports manual bootstrap of angular. This could be particulary useful in cases were we do not want to boostrap angular until a configuration file has been loaded from a server.

Configuration can be easily set like this:

```javascript
AppInit.setconfig(settings);
```

If the app is manually bootstraped, we could do something like this:

```javascript
asyncLoadSettings(function (response) {
AppInit.setconfig(response.settings).bootstrap('appMainModule');
});
```