I have a simple ng-click event on a header that, when clicked, will hide the ng-repeat section from view. When you click the header again, the ng-repeat section will reappear. I also have a kendo-date-time-picker attribute on an input element that's in an ng-repeat:
<h3 data-ng-click="hide=!hide">Unclaimed Orders</h3>
<div data-ng-if="!hide">
<section data-ng-repeat="row in vm.vom">
<input kendo-date-time-picker k-format="'MM/dd/yy h:mm tt'" data-ng-model="row.needed_date">
</section>
</div>
Whenever I click on that header, a TypeError message is logged into the console, and I'm not sure why it's doing so:
Anyone else experience this issue and found a way to solve it?
If I use ngShow instead of ngIf the error isn't produced. Why though does the error persist with ngIf? Does it not like being removed from the DOM and then added back?