Home:ALL Converter>Angular-ui bootstrap modal opens too slowly

Angular-ui bootstrap modal opens too slowly

Ask Time:2015-01-23T20:44:59         Author:stackylnr

Json Formatter

I have an Angular-ui Bootstrap modal in my Angular app:

<div class="modal-header">  
</div>
<div class="modal-body">
    <textarea ng-model="text" id="imageCaption" maxlength="1000" style="display: none;"></textarea>
</div>
<script>
    $(document).ready(function() {
        $("#imageCaption").myFunc();
    });
</script>

I want the script function to run after the Bootstrap modal is opened. Right now, when I click to open the modal, it opens only after a while because it runs the function first. I want to open the modal faster.

Author:stackylnr,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/28110258/angular-ui-bootstrap-modal-opens-too-slowly
yy