title: Angular 2 Routing Behaviour
body: <p>I am using angular 2 routing in my test project. Already created routing.ts and imported it in Module.ts.</p>
  
  <p>In my app.component.html(which is template html file for app.component.ts)
  I have the following code:</p>
  
  <pre><code>&lt;div class="navbar navbar-inverse navbar-fixed-top"&gt;
      &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
              &lt;a href="#" class="navbar-brand"&gt;Application name&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="navbar-collapse collapse"&gt;
              &lt;ul class="nav navbar-nav"&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;API&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a routerLink="en/test" routerLinkActive="active"&gt;Test1&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="container body-content"&gt;
      Something
      &lt;hr /&gt;
  
      &lt;div&gt;
          &lt;a routerLink="en/test" routerLinkActive="active"&gt;Test2&lt;/a&gt;
      &lt;/div&gt;
  
      &lt;router-outlet&gt;&lt;/router-outlet&gt;
      &lt;footer&gt;
          &lt;p&gt;&amp;copy; 2017 - My ASP.NET Application&lt;/p&gt;
      &lt;/footer&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>However, when I launch application, Test1 generates following <code>&lt;a&gt;</code> tag:</p>
  
  <p>Test1:</p>
  
  <pre><code>&lt;a routerlink="en/test" routerlinkactive="active" ng-reflect-router-link="en/test" ng-reflect-router-link-active="active" ng-reflect-href="/en/home/en/test" href="/en/home/en/test"&gt;Test1&lt;/a&gt;
  </code></pre>
  
  <p>and Test2:</p>
  
  <pre><code>&lt;a routerlink="en/test" routerlinkactive="active" ng-reflect-router-link="en/test" ng-reflect-router-link-active="active" ng-reflect-href="/en/test" href="/en/test"&gt;Test2&lt;/a&gt;
  </code></pre>
  
  <p>As you can see the difference is among <code>ng-reflect-href</code> and <code>href</code> attributes.
  Test1: <code>ng-reflect-href="/en/home/en/test" href="/en/home/en/test"</code>
  Test2: <code>ng-reflect-href="/en/test" href="/en/test"</code></p>
  
  <p>My question is: Why does it happen?</p>