I got problem, I'm trying to get controller instance in my service:
myAppModule.service('modalService',
function ($modal, $controller) {
var controller = $controller('ExperienceDetailsModalCtrl');
});
but I've got error: TypeError: Cannot read property '$scope' of undefined
Is it possible to access controller (defined in another file) and pass it to modal?
My controller:
myAppIndexModule
.controller('ExperienceDetailsModalCtrl', function ($scope) {
});