This is an angular 1 with bootstrap.
I have two buttons:
<button type="button" data-toggle="modal" data-target="#myModal" data-name="jack">
Btn 1
</button>
<button type="button" data-toggle="modal" data-target="#myModal" data-name="jill">
Btn 2
</button>
I have then a modal:
<div id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
Hello name
</div>
</div>
</div>
</div>
I am aware that this can be quite easily be done with a javascript controller.
But I wonder if it is possible to solve this without javascript.
If Btn 1
is clicked I want to show the text Hello jack
. And Hello jill
if Btn 2
is clicked.
Basically: can I read directly in the view the variable data-name?