错误:[ng:areq] http://errors.angularjs.org/1.4.5/ng/areq?p0=PlaneCtrl&p1=not%20a 1.#QNAN0unction%2C%20got%20undefined对angularjs中此错误的任何帮助
.state('testing.test', {
url: '/test-map',
templateUrl: 'test.html',
controller: 'PlaneCtrl as plane',
})
;(function(){
angular.module('app.controllers')
.controller('PlaneCtrl', function(PlaneSrv) {
var vm = this;
PlaneSrv.getSeatmap().success(function(response) {
if('seatMaps' in response && response.seatMaps.length) {
vm.seatmap = seatParseHelper(response.seatMaps[0]);
};
});
});
})();
;(function() {
'use strict';
angular.module('app.controllers', []);
})();