Я создаю директиву <row>
AngularJS, которая должна заменить себя (тег <row>
не должен присутствовать в DOM после выполнения) с динамическим шаблоном, который может содержать любой HTML-код.
Проблема при использовании replace: true
заключается в том, что он не работает с тегами table <tr>
и что шаблон динамически выбран.
Итак, я пытаюсь найти способ заменить элемент в функции связывания без успеха.
Использование jQuery .replaceWith()
по неизвестной причине прерывает ngRepeat
.
Любые подсказки?
Вот fiddle