title: Change Text in a button using ng-click
body: <p>I am trying to change the text in the button using angular I am pretty much done but I have a few questions.</p>
  
  <p>First, my code below just changes the text when I click the first time, how can I change it again after the second click? That button is hiding a <code>&lt;DIV&gt;</code> so that is the reason for the change?</p>
  
  <p>Angular:</p>
  
  <pre><code> angular.module('test',[])
      .controller('MyCtrl',function ($scope) {
        $scope.myText = 'Press to start';
        $scope.start = function () {
        $scope.myText = 'Starting...';
      }
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;body ng-controller="MyCtrl"&gt;
      &lt;button ng-click="start()"&gt; {{ myText }} &lt;/button&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>The second part of my question is:</p>
  
  <p>How can I apply that code in that code up in that HTML and Angular?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;a ng-click="Menu()" class="btn btn-default" id="menu-client"&gt;hide the search&lt;/a&gt;
  </code></pre>
  
  <p>Angular:</p>
  
  <pre><code>$scope.Menu = function(){
          $("#wrapper").toggleClass("toggled");
      };
  </code></pre>