Within a modal popup that appears based on certain conditions, everything functions normally the first time it is displayed.
The code in question is as follows:
<div class="form-group">
<p>First Name:</p>
{{vm.user.name_first}}
<input type="text" class="form-control" ng-model="vm.user.name_first" name="firstName" required />
</div>
Upon reopening the modal after closing it, the text below the p
tag displays correctly. However, the
ng-model
, which contains the same content as the text after the p
tag, shows the input field empty instead of displaying the content from vm.user.name_first
.
What could be causing this issue to occur only on the second instance?