I'm using this Bootstrap plugin to turn a checkbox into a pair of buttons. It works as expected when the checkbox exists before the page is loaded (part of page's initial HTML); however, I need it to run when a checkbox is dynamically created by Angular, as it is when editIndex is set, as in the function below: to turn a check