title: Assign one textfield value to another based on checkbox click with angular.js
body: <p>I have two input field. I wanted to assign my first textfield value to second textfield value based on checkbox click event. So in my html the checkbox "Show me Password" click will display entered password by user in textfield one to my second textfield.</p>
  
  <p>My html looks something like below.</p>
  
  <pre><code>&lt;div class="input-group bmargindiv1 col-md-12"&gt;
  &lt;span class="input-group-addon ndrftextwidth text-right" style="width:180px"&gt;Password :&lt;/span&gt;
  &lt;input type="password" name="itemname" id="contactno" class="form-control" placeholder="password" ng-model="password" &gt;
  &lt;/div&gt;
  &lt;div class="input-group bmargindiv1 col-md-12"&gt;
  &lt;span class="input-group-addon ndrftextwidth text-right" style="width:180px"&gt;Show me Password &lt;input type="checkbox" ng-model="checkboxModel.value" /&gt;&lt;/span&gt;
  &lt;input type="text" name="itemname" id="contactno" class="form-control" placeholder="password"  readonly="readonly" &gt;
  &lt;/div&gt;
  </code></pre>