title: Change the name of the dropdown menu according to selection in Angular
body: <p>There is this dropdown menu in my Angular web-application:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="btn-group" dropdown&gt;
    &lt;button dropdownToggle type="button" class="btn btn-primary dropdown-toggle"&gt;NAMEOFDROPDOWN
      &lt;span class="caret"&gt;&lt;/span&gt;&lt;/button&gt;
    &lt;ul *dropdownMenu class="dropdown-menu" role="menu"&gt;
      &lt;li role="menuitem"&gt;&lt;a class="dropdown-item" routerLink="/first"&gt;First&lt;/a&gt;&lt;/li&gt;
      &lt;li role="menuitem"&gt;&lt;a class="dropdown-item" routerLink="/second"&gt;Second&lt;/a&gt;&lt;/li&gt;
      &lt;li role="menuitem"&gt;&lt;a class="dropdown-item" routerLink="/third"&gt;Third&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want the name of the Dropdown, where currently reads NAMEOFDROPDOWN, to change to whatever is the name of the route that I select from the dropdown.</p>
  
  <p>How do I do this?</p>