Angularjs amd loading support