0
У меня есть некоторые данные, передаваемые от контроллера к контроллеру модального.ng: areq: При разрешении данных Угловой UI Modal
В мой контроллер:
vm.timetableModal = modals.open.timetable(vm.store.formatted_working_hours || null);
vm.timetableModal.result.then(function (res) {
vm.store.formatted_working_hours = res.formatted_working_hours;
})
В модальности заводе:
function timetable(current_working_hours) {
return $uibModal.open({
templateUrl: 'templates/modals/timetable_modal.html',
controller: 'timeTableCtrl',
controllerAs: 'tm',
resolve: {
current_working_hours: current_working_hours
}
});
}
Проблема возникает, когда current_working_hours
не является нулевым.
Фактическая ошибка:
"Error: [ng:areq] http://errors.angularjs.org/1.5.8/ng/areq?p0=fn&p1=not%20a%20function%2C%20got%20Object