title: Calling angular method using jquery on button click
body: <p>I want to call a method from angular controller using jquery button click.</p>
  <p>Here is my HTML</p>
  <pre><code>&lt;div class=&quot;actionBar&quot;&gt;
      &lt;select class=&quot;select select-primary form-control&quot; id=&quot;ClassificationStepTechnical&quot; required&gt;
          &lt;option value=&quot;&quot;&gt;...&lt;/option&gt;
          &lt;option value=&quot;1&quot;&gt;yes&lt;/option&gt;
          &lt;option value=&quot;2&quot;&gt;no&lt;/option&gt;
     &lt;/select&gt;
     &lt;input type=&quot;button&quot; value=&quot;start&quot; class=&quot;btn btn-primary&quot; onclick=&quot;StartRequestStep()&quot; /&gt;
  &lt;/div&gt;
  
  &lt;div id=&quot;StartRequest&quot; ng-app=&quot;complaintRequest&quot; ng-controller=&quot;CompalintController&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>My jquery Function:</p>
  <pre><code>function StartRequestStep() {
       if ($(&quot;#ClassificationStepTechnical&quot;).val() == &quot;1&quot;) {
           angular.element($(&quot;#StartRequest&quot;)).vm().createComplaint();
       }    
  }
  </code></pre>
  <p>my Angular Controller:</p>
  <pre><code>(function(){
      &quot;use strict&quot;;
  
      angular.module(&quot;complaintRequest&quot;).controller(&quot;CompalintController&quot;, [&quot;$state&quot;,CompalintController]);
  
      function CompalintController($state)
      {
          var vm = this;
          vm.createComplaint = function () {
  
              var stepToGo = 'Request.StartRequest'
              $state.go(stepToGo, { requestId: -1 });
          }
  
          vm.loginComplaint = function () {
              var stepToGo = 'Login.Authentication'
              $state.go(stepToGo,null);
          }
  
          vm.ClassificationRequest = function () {
              var stepToGo = 'Classification.ClassificationRequest'
              $state.go(stepToGo, null);
          }
      }
  }())
  </code></pre>
  <p>I want to Call <strong>vm.createComplaint</strong> on the button click, but I got this error</p>
  <pre><code>Uncaught TypeError: angular.element(...).vm is not a function
  </code></pre>