I found only one of my resetables was being reset. I adjusted the code to this:
var resettables = formElement[0].querySelectorAll('[resettable],[data-resettable]');
for (var i = 0; i < resettables.length;i++) {
scope.$apply(angular.element(resettables[i]).triggerHandler('resetResettables'));
}
It seems to work now. I didn't spend much time so let me know if I'm missing something and this is not actually needed.
I found only one of my resetables was being reset. I adjusted the code to this:
It seems to work now. I didn't spend much time so let me know if I'm missing something and this is not actually needed.