the contents of the directive&#39;s element.</li>
</ul>
<p>The replacement process migrates all of the attributes / classes from the old element to the new
one. See the <a href="guide/directive#template-expanding-directive">Directives Guide</a> for an example.</p>
<p>There are very few scenarios where element replacement is required for the application function,
the main one being reusable custom components that are used within SVG contexts
(because SVG doesn&#39;t work with custom elements in the DOM tree)