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>
Follows the Error
 Uncaught Error: [$injector:modulerr] Failed to instantiate module  layoutxepa due to:
 Error: [$injector:unpr] Unknown provider: serialGeneratorProvider
serialGeneratorProvideris not defined. Check if the file responsible for your configuration is being loaded, and if the service is being added to Angular startup.– OnoSendai
@Onosendai the serialgenerator.js file was not being imported . obg by return
– Jose Vieira Neto
Always a pleasure - I’m glad the tip has solved your problem!
– OnoSendai