My ngRoute breaks everytime I add another dependency. I want to add the 'moment-picker' to my app to pick dates and times but once I add the dependency to the module, I get the following error:
Uncaught Error: [$injector:modulerr]
On the error page under 'Discription' it shows 'Using ngRoute'.
This is my code:
var app = angular.module('weather', ['ngRoute', 'moment-picker']);
If I remove the 'moment-picker' the ngRoute works perfectly without any errors.
I have tried switching my links to my scripts around, but no luck.
It seems like my problem was the order of scripts added, as well as that at a point I removed the 'moment-withh-locales.js' script.
My order now is:
In app.js my code is as follows:
Thank you all for helping.