I’m trying to use two different modules,i added it as dependency to my main module ,i’m getting this error…Please help !!!
Error: [$injector:modulerr] Failed to instantiate module testServices due to:
Error: [$injector:nomod] Module ‘XXXX’ is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
The two most common reasons imo is that you forgot to include the <script> tag for your file in index.html (make sure your path is correct!), or that you’re adding the wrong module. If neither is the case a codepen would help.
Pen may not give any output , libraries are not inserted in index.html properly.I want you to check the dependency part.I was strugling with this since many days writing all js in one file .Thank you