title: What is the difference between `value` attribute and `ng-value` attributes in angularjs
body: <p>What is the difference between <code>value</code> and <code>ng-value</code> attributes in angularjs templates? If I use <code>ng-if</code> on the field using value attribute it works properly but if I change the attribute <code>value</code> to <code>ng-value</code> it stops working. </p>
  
  <pre><code>example 1  // it works 
  
  &lt;input type='radio' ng-model='difficulty' value='hard'/&gt;
  &lt;div ng-if="difficulty == 'hard'"&gt;
       &lt;p&gt;difficulty is hard&lt;/p&gt;
  &lt;/div&gt;  
  
  Example 2 // it doesn't work
  
  &lt;input type='radio' ng-model='level' ng-value='hard'/&gt;
  &lt;div ng-if= "level == 'hard'" &gt;
       &lt;p&gt;level is hard&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>