我收到的'RoomTicketController'不是函数错误,页面加载时未定义。
这是我的组成部分: Roomticket.controller.js
(function() {
'use strict';
angular
.module('app.SystemSetup.roomticket',[])
.controller('RoomTicketController', function RoomTicketController($http, $scope, $state, $rootScope, $location, $anchorScroll, $mdToast, $document, $cookieStore, $mdDialog ) {
$scope.PageTitle =" Room Ticket"
});
})();
Roomticket.module.js
(function() {
'use strict';
angular
.module('app.SystemSetup.roomticket',[])
.config(config);
/** @ngInject */
function config($stateProvider, $translatePartialLoaderProvider, msApiProvider, msNavigationServiceProvider) {
// State
$stateProvider
.state('app.roomticket', {
url: '/roomticket',
views: {
'content@app': {
templateUrl: 'app/main/SystemSetup/RoomTicket/RoomTicket.html',
controller: 'RoomTicketController'
}
},
data: { requiresLogin: true },
bodyClass: 'Room Ticket',
ModuleName: 'Room Ticket'
});
}
})();