Andrea Robinson Andrea Robinson - 4 months ago 7
AngularJS Question

transfer the value entered in a textfield to another angularJs

I am trying to transfer the value entered into a textfield to another in angularjs and this is my attempt but it is not working

<label>Email Address:</label>
<input type="email" name="userEmail" ng-model="email" required />

<span class="invalid" ng-show="myForm.userEmail.$error.required">Your email is required</span>
<br>

<input type="email" name="emailAccess" ng-model="{{email}}" required />


Kindly assist!

EOF EOF
Answer
<label>Email Address:</label>
        <input type="email" name="userEmail" ng-model="email" required />

          <span class="invalid" ng-show="myForm.userEmail.$error.required">Your email is required</span>
         <br>

         <input type="email" name="emailAccess" ng-model="email" required />

Remove {{ and }} from last one.

Comments