You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
I am using requireJS as asynchronous module loader, i configured requireJS with the path of angular-loading-bar but when i load it using require i can't found the module.
I am using the same combination, of requireJS + angular-loading-bar
And it working as normally for me, I am asumming that your question was about you couldn't see the loading bar when requireJS loading its modules, right?
Activity
the-unsoul commentedon Oct 21, 2015
I am using the same combination, of
requireJS + angular-loading-barAnd it working as normally for me, I am asumming that your question was about you couldn't see the loading bar when requireJS loading its modules, right?
m-amr commentedon Oct 21, 2015
At requireJs.config
1- i added this line to the pathes
loadingBar:'bower_components/angular-loading-bar/build/loading-bar.min',
2-and i use shim to add angular as dependency for that module
loadingBar: {
exports: 'loadingBar',
deps:['angular']
},
i have my mainAngularModule called appModule;
what i am trying to do is to add the loadingBar module as a dependency in my appModule
var loadingBar = require('loadingBar');
console.log(loadingBar);
//display undefined
it throw error because loadingBar is undefined
but when i added the module name as string it works
m-amr commentedon Oct 22, 2015
This pull request will solve this Issue
https://github.com/chieffancypants/angular-loading-bar/pull/248/files
the-unsoul commentedon Oct 22, 2015
+1
attila226 commentedon Nov 4, 2015
+1
faceleg commentedon Mar 17, 2016
Closing, refer to #248