title: Angularjs populate the select and checkbox from JSON not working
body: <p>I'm trying to populate the form with Data that are coming from Database/JSON.</p>
  
  <p>I can populate the text field but for some reason the select drop down and the checkbox are not being populated with data. The select should have "male" and the checkbox should be ticked because it's set true.</p>
  
  <p>code:</p>
  
  <pre><code>    &lt;form&gt;
      &lt;label&gt;Gender:&lt;/label&gt;
      &lt;select id="s1" ng-model="myData.gender"&gt;&lt;/select&gt;
      &lt;br&gt;
      &lt;label&gt;Name:&lt;/label&gt;
      &lt;input type="text" ng-model="myData.name"&gt;
      &lt;br&gt;
      &lt;label&gt;Active:&lt;/label&gt;
      &lt;input type="checkbox" ng-model="myData.active" value="" id="checkbox" name="check" ng-init="myData.active=myData.active"&gt;&lt;br&gt;
      &lt;input type="button" value="Save" ng-click="Update"&gt;
    &lt;/form&gt;
  
      //assume these data coming from database
        $scope.myData = {
          "name" :  "John",
          "active" : "true",
          "gender" : "male"
        };
  </code></pre>
  
  <p>So basically the whole idea is that, when the fields are populated, the user can change the values and then hit the Save button which will update the database with new data.</p>
  
  <p>Can anyone help?</p>
  
  <p><a href="http://plnkr.co/edit/eik1DrDhfv9MmZIxvHqC?p=preview" rel="nofollow">PLUNR</a></p>