Error: $injector:modulerr Module Error – AngularJS

Hey everyone,

Just getting back into angularjs and I came across the following error:

Unknown provider: $routeProvider

It turns out I that while I had included the route provider file I had missed adding it to the app:

var app = angular.module('commandsApp', [']);
var app = angular.module('commandsApp', ['ngRoute']);

Check out the following links if you’re still having issues:$routeProvider

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.