I'm using Angular UI bootstrap tabs and jQuery datatables. However, the jQuery to instantiate the datatables is getting fired before AngularJS processes the directive. Please advise.
<tabset>
<tab heading="Heading 1">
<div id="my_div_container">Some dynamic content</div>
<table id="myTable">
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
<tr>
<td>Value 1</td>
<td>Value 2</td>
<td>Value 3</td>
</tr>
</tab>
</tabset>
<script type="text/javascript">
jQuery("document").ready(
function($) {
$('#my_div_container').html('my jQuery content');
$("#myTable").dataTable({
aLengthMenu : [ [ 10, 25, 50, 100, -1 ],
[ 10, 25, 50, 100, "All" ] ]
});
}
);
</script>