If you were to launch a modal window using $modal.open from an angular directive, would the modal window be able to access functions defined within the parent directive?
Below is the code for the directive controller:
function parentFunction()
{
return 5;
}
$scope.showDialog = function()
{
var dialog = $modal.open({
controller: 'modalController',
...
}
And here is the code for the 'modalController':
var val = parentFunction();