Angular 1.3.5 + closure SIMPLE_OPTIMIZATIONS == fail
| Uncaught Error: [$injector:modulerr] Failed to instantiate module bbApp due to: | |
| Error: [$injector:unpr] Unknown provider: a | |
| http://errors.angularjs.org/1.3.5/$injector/unpr?p0=a | |
| at http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:63:12 | |
| at http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:3950:19 | |
| at getService (http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:4097:39) | |
| at Object.invoke (http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:4129:13) | |
| at runInvokeQueue (http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:4044:35) | |
| at http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:4053:11 | |
| at forEach (http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:322:20) | |
| at loadModules (http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:4034:5) | |
| at createInjector (http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:3960:11) | |
| at doBootstrap (http://localhost:9999/static/js/lib/angular-1.3.5/angular.js?v=46c38e804e450a5f3c84c22de9e8bf9c:1434:20) | |
| http://errors.angularjs.org/1.3.5/$injector/modulerr?p0=bbApp&p1=Error%3A%2…ular-1.3.5%2Fangular.js%3Fv%3D46c38e804e450a5f3c84c22de9e8bf9c%3A1434%3A20) |
| "use strict"; | |
| var bbAppModule = angular.module('bbApp', ['ngRoute']) | |
| .config(function($routeProvider, $locationProvider) { | |
| $routeProvider | |
| .when('/game/:gameID?/:gameName?', {controller:'GameAppCtrl', templateUrl:'static/templates/gameTemplate.html'}) | |
| .otherwise({redirectTo:'/'}); | |
| $locationProvider.html5Mode(true); | |
| }) | |
| .controller('GameAppCtrl', ['$scope', '$routeParams', '$http', function($scope, $routeParams, $http) | |
| { | |
| $scope.gameID = $routeParams.gameID; | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment