Defining dependencies between 3rd party requirejs amd and non-amd modules

47 Views Asked by At

I am using angularjs with requirejs and I have no trouble to load my own amd modules in the correct order. I am also able to load 3rd party (bower) dependencies for my own amd modules if the dependencies are non-amd using shims as shown in requirejs documentation.

Now I have a 3rd-party amd-module angular-spinner that would have angularjs as dependency. Since I am not allowed to use shims for amd-modules how can I tell requirejs to load angular-spinner only after angular was loaded?

Currently I am getting an exception saying that angular is undefined when angular-spinner is loaded.

0

There are 0 best solutions below