title: How can I display the selected element of a dropdown list in a button?
body: <p>I have this dropdown menu:</p>
  
  <pre><code>  &lt;div class="input-group"&gt;
  
    &lt;div class="input-group-btn"&gt;
  
      &lt;button type="button" class="btn btn-default dropdown-toggle"
      data-toggle="dropdown" aria-haspopup="true"
      aria-expanded="false"&gt;
  
      All Categories
  
      &lt;span class="caret"&gt;&lt;/span&gt;&lt;/button&gt;
  
      &lt;ul class="dropdown-menu" ng-model = "cat"&gt;
  
        &lt;li&gt;&lt;a href="#"&gt;All Categories&lt;/a&gt;&lt;/li&gt;
        &lt;li role="separator" class="divider"&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Clothes&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Electronics&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Books&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Other&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>What can I do to display the chosen element from the list instead of the label of the button which is "All Categories". Alternatively can I remove the label and just set the default selected item to be the first one, which is also "All Categories"?</p>
  
  <p>Also, another question, how can I access the selected value in a JS file using angular? </p>
  
  <pre><code>$scope.cat.value 
  </code></pre>
  
  <p>Doesnt seem to work.</p>