Default checked in angularjs

by M. Junaid Salaat

HTML

<div ng-app ng-controller="testcontroller">
  <div >

  <input type="password" name="password"
                               ng-model="model.password"
                               placeholder="Please type your password"
                               ng-show="!showPassword">

<input type="text" name="password"
                               ng-model="model.password"
                               ng-show="showPassword">

<input type="checkbox" ng-model="showPassword">

</div>


</div>

JavaScript

function testcontroller($scope) {
  $scope.model = {
    
  };

}