I am currently attempting to develop a directive that will substitute an input field with a custom-made input field. Unfortunately, I am encountering challenges with getting the data binding to function properly, as the model does not display in the directive input field.
To showcase my issue, I have set up a jsFiddle:
http://jsfiddle.net/6HcGS/392/
It seems like I am missing something essential for the data binding to operate correctly:
tElement.replaceWith('<input ng-model="ngModel" type="text" />');
If anyone can provide assistance, I would greatly appreciate it, as this problem has consumed my entire day.
Cheers!