diff --git a/index.html b/index.html index 83258e75ce..04f88d2551 100644 --- a/index.html +++ b/index.html @@ -4,21 +4,12 @@ - - \ No newline at end of file diff --git a/platform/framework/src/Main.js b/platform/framework/src/Main.js new file mode 100644 index 0000000000..c914184329 --- /dev/null +++ b/platform/framework/src/Main.js @@ -0,0 +1,31 @@ +/*global define, requirejs*/ + +requirejs.config({ + "shim": { + "../lib/angular.min": { + "exports": "angular" + } + } +}); + +define( + [ + 'require', + '../lib/es6-promise-2.0.0.min', + '../lib/angular.min' + ], + function (require, es6promise, angular) { + "use strict"; + + var injector = angular.injector(['ng']); + + // Polyfill Promise, in case browser does not natively provide Promise + window.Promise = window.Promise || es6promise.Promise; + + injector.invoke(['$http', function ($http) { + return $http.get('bundles.json').then(function (b) { + console.log(b); + }); + }]); + } +); \ No newline at end of file