Within my ng-repeat table, I have two date fields. Here is the code snippet:
<tr ng-repeat="ol in orderLines">
<td>
<input class="audioStartTime" type="text" ng-model="ol.AudioStartTime"/>
</td>
<td>
<input class="audioEndTime" type="text" ng-model="ol.AudioEndTime"/>
</td>
As the names suggest, audioStartTime and audioEndTime are time fields that require input masks. To achieve this, I utilized the following code:
$('.audioStartTime').each(function(index) {
$(this).inputmask("hh:mm:ss", {placeholder: "HH:MM:SS", insertMode: false, showMaskOnHover: false});
});
I conducted a test on this implementation. When inserting it directly into the developer tool's console after the document loads, it functions correctly. However, when placed within document.ready, it fails to work.
This led me to speculate that AngularJS may have a mechanism for reloading or re-rendering the table content after processing the ng-repeat data. Is there any truth to this theory? If so, where should I position my input mask code to ensure execution post loading of AngularJS elements?