title: databinding custom directive angular with replacing html in compile function
body: <p>i am trying to write a directive that replaces an input field with an custom made input field. However, I can not get the databinding to work as the model does not show in the directive input field.</p>
  
  <p>I have created a jsFiddle here:</p>
  
  <p><a href="http://jsfiddle.net/6HcGS/392/" rel="nofollow">http://jsfiddle.net/6HcGS/392/</a></p>
  
  <p>I guess i dont really know what to place here for the databinding to work:</p>
  
  <pre><code>tElement.replaceWith('&lt;input ng-model="ngModel" type="text" /&gt;');
  </code></pre>
  
  <p>If anybody could help me out i would be very grateful as this has been a problem for me for a whole day now.</p>
  
  <p>Cheers!</p>