title: What is the difference between ng-click and data-ng-click in angularjs?
body: <p>From 1st view seems like <code>data-ng-click</code> can pass some data as argument to method should be invoked during pressing on button.</p>
  
  <p>But I don't see the difference.</p>
  
  <p>I have followed snippets of code:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input 
      type="button" 
      value="Fess"
      ng-click="toggle(2)"&gt;
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>&lt;input 
      type="button" 
      value="Fess"
      data-ng-click="toggle(2)"&gt;
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>$scope.toggle = function (valueS) {
      alert(valueS);        
  }
  </code></pre>
  
  <p>Both work.</p>
  
  <p>Thanks,</p>