replace an element depending on it's class (Angular)
<p>I am making a date picker.</p>

<pre><code>&lt;a ng-click="navbarlinksCtrl.clickedfr()" ng-class="{'active': navbarlinksCtrl.checkLanguageFr()}"&gt;FR &lt;/a&gt;
&lt;a ng-click="navbarlinksCtrl.clickeden()" ng-class="{'active': navbarlinksCtrl.checkLanguageEn()}"&gt;EN&lt;/a&gt;
</code></pre>

<p>Here, the <code>&lt;a&gt;</code> takes the active class if this is the current language, and I would like to change the active element into a <code>&lt;span&gt;</code>.</p>

<p>I tried some ways, but anything worked ($window.element, replaceWith, GetElementsByClassName, but doesn't works :/)</p>