title: How to get element in angularjs analog of get by id in javascript?
body: <p>Lets say I have button:</p>
  
  <pre><code>&lt;button type="submit"
          value="Send" 
           id="btnStoreToDB"
           class="btn btn-primary start"             
           ng-click="storeDB()"
           ng-disabled="!storeDB_button_state"
           &gt;
                  &lt;i class="icon-white icon-share-alt"&gt;&lt;/i&gt;
                  &lt;span&gt;Store to DB&lt;/span&gt;
              &lt;/button&gt; 
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/wOks7.png" alt="enter image description here"></p>
  
  <p>In JS to get this button I just do <code>var btn = $('#btnStoreToDB');</code> and now can play with this button. So I can take it by <code>id</code> or <code>class</code>.</p>
  
  <p>But how can I get this element with <code>angularjs</code>?</p>
  
  <p>I want to add spinner to button during loading like showed <a href="http://jsfiddle.net/amilarox/JMskU/" rel="noreferrer">here (Fiddle)</a>.</p>
  
  <p>Since all my project I started to use angulajs only I try to do it wisely and do not like how do I know.</p>
  
  <p>I thought to add: <code>ng-model="btnStoreToDB"</code> and use this:</p>
  
  <pre><code>  if($scope.btnStoreToDB){
        var spinner = new Spinner().spin();
        $scope.btnStoreToDB.appendChild(spinner.el);
    } 
  </code></pre>
  
  <p>but <code>$scope.btnStartUpload</code> is undefined. Suppose there is other way to fetch this button.</p>
  
  <p>Please, help</p>