Loading online dependancies in the run phase

I created an angular library to load async modules. It’s really simple to use and le you load other modules when you need it. Really useful for cordova apps that might start offline. It’s available here: https://github.com/kristianbenoit/angular-async-loader Here’s an example usage:

angular.module("app", ["angular-async-loader"])

.config(function($ngLoadProvider) {
  $ngLoadProvider.addModuleDep(["modulename"])
  .defineDep("service", ["http://script/url.js"]);
})

.controller("myCtrl", function($ngLoad) {
  $ngLoad("service").then(function(service) {
    //You can now access service
  });
});