Upon observation of the screenshot, it is evident that the button increments each time an index is incremented.
My inquiry pertains to whether, as the index increases, preceding numbers will no longer display the button.
For instance, in the provided screenshot, numbers 1 and 2 each have a button labeled "Insert Question Below." The request is for this button to only appear beside the current highest number, meaning in this case it should only be visible next to number 2.
javascript
me.create_question_object = function (index) {
}
html
<div class="col-md-12 yq-default-pad top50 text-center">
<div class="text-center">
{$ $index + 1 $}.)
<button ng-hide ng-click="main.create_question_object($index)" class="btn btn-success">
<i class="fas fa-plus-circle"></i> Insert Question Below</button>
</div>
</div>
To view the screenshot, click here: https://i.sstatic.net/rI1R0.jpg