http://jsfiddle.net/dwmkerr/8MVLJ/
I'm trying to experiment from the sample above. My problem is that the modal cannot seem to read anything from the $scope that called it.
Javascript
$scope.sampleTest = "SAMPLE TEXT"; // additional code
$scope.show = function() {
ModalService.showModal({
templateUrl: 'modal.html',
controller: "ModalController"
}).then(function(modal) {
modal.element.modal();
modal.close.then(function(result) {
$scope.message = "You said " + result;
});
});
};
HTML
<p>It's your call...{{sampleText}}</p>
The modal only shows "It's your call..." instead of "It's your call... SAMPLE TEXT"
Is there anything I'm missing out here?