title: How to use routerLink with innerHTML
body: <p>I am using Angular 6. I just want to create a dynamic route by using the <code>innerHTML</code>. I tried the following code but it is not working.
  In the component file, I wrote the following code inside the constructor:</p>
  <pre class="lang-js prettyprint-override"><code>this.anchor = &quot;&lt;a routerLink='login'&gt;Dynamic Login&lt;/a&gt;&quot;
  </code></pre>
  <p>In the template file, I wrote the following code:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div [innerHtml]=&quot;anchor&quot;&gt;&lt;/div&gt;
  </code></pre>