Wednesday, July 13, 2016

Error: [$injector:nomod] Module ‘ngRoute’, ‘ngResource’ is not available – AngularJS

During An Angular Application devlopement i confronted various errors and the given below is one of them as shown below:

Uncaught Error: [$injector:modulerr] Failed to instantiate module routingApp due to:

Error: [$injector:modulerr] Failed to instantiate module ngRoute due to:

Error: [$injector:nomod] Module 'ngRoute' 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.

http://errors.angularjs.org/1.2.6/$injector/nomod?p0=ngRoute

Solution

The possible errors rises because of the latest js library is not placed in current file.so use the following link to mitigate such error.Add the given below reference in that file where you have placed routing configuration.

  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular-route.js"></script>

Hope it will resolve an error.

Thanks

1 comment :

  1. Really i enjoyed very much. And this may helpful for lot of peoples. So you are provided such a nice and great article within this.

    SEO Company in Chennai

    ReplyDelete