Im trying to set a value of a password input field from the controller but its having no effect
Controller
$scope.passwordDetails.currentPassword = 'madeuppassword';
.
View
<div class="form-group" show-errors>
<label for="currentPassword">Current Password</label>
<input type="password" id="currentPassword" name="currentPassword" class="form-control"
ng-model="passwordDetails.currentPassword" placeholder="Current Password" required>
<div ng-messages="passwordForm.currentPassword.$error" role="alert">
<p class="help-block error-text" ng-message="required">Your current password is required.</p>
</div>
</div>
Is there something simple im doing wrong?