oj-bind-for-each error when clearing object array
Summary
need help with oj-bind-for-each error when clearing object arrayContent
I have an array of objects and I am rendering them using oj-bind-for-each with an oj-input-text inside the template. My problem comes when the user clicks a button to begin another search. At that point, we set the object array to a new empty array, so we can load it with fresh results. This is causing an error in the oj-bind-for-each code. (At least, the error goes away if I comment out that code.)
At first, I was getting errors because the fields were not defined in the new empty object array. (It's not defined as a Type, I should probably do that?) I worked around those errors by adding logic in the data section like:
0