Since the angular script tags are in the html header, there is a small chance that not all modules will load when they are used.
According to Where should I put <script> tags in HTML markup? , you have two options:
1. Add defer tags to script tags in your head that may not work for all browsers:
<script src="bower_components/jquery/dist/jquery.js" defer></script> <script src="bower_components/angular/angular.js" defer></script> <script src="bower_components/bootstrap/dist/js/bootstrap.js" defer></script> <script src="bower_components/angular-ui-router/release/angular-ui-router.js" defer></script>
2. Place them in the lower body. This will work for all browsers.
... <script src="bower_components/jquery/dist/jquery.js" defer></script> <script src="bower_components/angular/angular.js" defer></script> <script src="bower_components/bootstrap/dist/js/bootstrap.js" defer></script> <script src="bower_components/angular-ui-router/release/angular-ui-router.js" defer></script> <script src="scripts/app.js"></script> <script src="scripts/controllers/main.js"></script> <script src="scripts/controllers/register.js"></script> <script src="scripts/app.config.js"></script> </div> </body>
source share