2014-10-31 16:43:16 -07:00
|
|
|
/*global define, requirejs*/
|
|
|
|
|
|
|
|
requirejs.config({
|
|
|
|
"shim": {
|
|
|
|
"../lib/angular.min": {
|
|
|
|
"exports": "angular"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
define(
|
|
|
|
[
|
|
|
|
'require',
|
|
|
|
'../lib/es6-promise-2.0.0.min',
|
2014-11-03 08:44:52 -08:00
|
|
|
'../lib/angular.min',
|
|
|
|
'./BundleLoader'
|
2014-10-31 16:43:16 -07:00
|
|
|
],
|
|
|
|
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);
|
|
|
|
});
|
|
|
|
}]);
|
|
|
|
}
|
|
|
|
);
|