Error in the configuration of RouterProvider of AngularJS

2

I imported the angular-route.js and made the following configuration:

  <script type="text/javascript">
   angular.module("layoutxepa",["ngRoute"]);

   angular.module("layoutxepa").config(function (serialGeneratorProvider) {
     serialGeneratorProvider.setLength(5);
   });

   angular.module("layoutxepa").config(function ($routeProvider) {

   });

 </script>

Follow the Error

 Uncaught Error: [$injector:modulerr] Failed to instantiate module  layoutxepa due to:
 Error: [$injector:unpr] Unknown provider: serialGeneratorProvider
    
asked by anonymous 28.09.2015 / 17:10

1 answer

1

The problem was that the file

  

serialGenerator.js

was not being imported.

<script src="src/main/webapp/app-content/js/serialGenerator.js"></script>
    
28.09.2015 / 22:07