Hello everyone.
I've been struggling for a while on this one, and haven't quite solved it yet, so... I hope someone can show me the light.
As you can see from index.html, I'm trying to use
Bootstrap 3.0.3
AngularJS 1.2.9
Angular UI Bootstrao 0.10.0
index leads to MyApp.js, which sets up simple routing to home.html and HomeCtrl.
Now, HomeCtrl uses the $modal service to create a modal instance ($modal.open), using _modal.html as template and ModalCtrl as controller.
_home.html as hard-coded "Title" and "Message" for the modal dialog and it all seems to work fine.
However, when I try to make HomeCtrl pass variables into the instance, I start failing. I've tried a few things based on the samples I could find around (the canonical Angular UI bootstrap sample for modal passes a list of items), but none quite worked.
Could you show me how I should go by having HomeCtrl "pass in" a title and message so that the _modal.html can display them instead of the hardcoded values?
( I'm not showing any of my attempts so far because I don't want to "lead the witness" down the path of using resolve, or adding the variables to $scope or anything else )
Thank you,
FR