The issue seems to be randomly occurring. For instance, this same code was running. What I did to make the code break was to remove localStorageService from the controller definition and on reload, the code broke. I have replaced the localStorageService in the controller definition but still the code breaks.
The root of the problem is this:
“Module ‘lukaduka-pos’ 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.”
What I did was to delete my app.js code and copy and paste the last version of the app.js code from the tutorial. I then edited it to look exactly like my code which wasn’t working. The gist for the new code which is working can be found here: https://gist.github.com/niiamon/9500a4d208ed3ca569c2. It’s essentially the same as my code which wasn’t working here: http://pastebin.com/k8Tpympu.
Can anyone spot the differences? I can’t see any significant differences.