Default checked in angularjs
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 = {
};
}