title: replaceWith not working in custom angular directive
body: <p>I know this is a previously asked question, but just once in the angular context (with the same title), many more for jQuery.... No answers though for the angular question, people asked for a fiddle/plunker reproducing the problem, which is legit.</p>
  
  <p>So, I re-ask the question as I couldn't comment in the <a href="https://stackoverflow.com/questions/24156903/angular-element-replacewith-not-working">original thread</a> and provide <a href="http://plnkr.co/edit/IcuFoH98Ckck8wcOSSKt?p=preview" rel="nofollow noreferrer">this plunker</a>.</p>
  
  <p>Directives are located in <code>app.js</code> file (only directives there), the <code>localtest.js</code> file is the jasmine test of interest. You can see the error just when you load the the plunker. There are console.log calls, so you can open firebug/devtools to check that, after having called <code>element.replaceWith()</code> the element object is the same than before.</p>
  
  <p><strong>Am I (and the other guy) doing something wrong?</strong> (which I suspect, but I don't know what :-S)</p>