Change routeScript type to array (before object), and change the angular.foreach to navite javascript forEach
Change routeScript type to array (before object), and change the angular.foreach to navite javascript forEach

avenda/angular-route-scripts