【发布时间】:2016-04-05 13:33:56
【问题描述】:
var myapp = angular.module('myapp', []);
myapp.config(function($interpolateProvider) {
$interpolateProvider
.startSymbol('{[')
.endSymbol(']}');
});
myapp.controller('CanvasControls', function($scope) {
function1($scope);
function2($scope);
});
This code integrate with rails and working in development fine but in production mode it gives below errors.
未能实例化模块 myapp 由于:
Uncaught Error: $injector:modulerr
/$injector/modulerr?p0=myapp
【问题讨论】:
标签: javascript angularjs ruby-on-rails-4 angularjs-scope spree