N
N
n0thing2014-07-31 15:55:27
Angular
n0thing, 2014-07-31 15:55:27

How to autocomplete when using Angularjs?

There are simple forms for signin & signup, with name, email and password fields in them, by default the autocopmlete attribute seems to be enabled, but for some reason this attribute does not work using Angularjs. Autocomplete should work for name/email and not work for password. How did you fix it? Thanks in advance

<div class='ng-modal-dialog-content'>
    <div class="modal-wrapper-start">
        <div class="add">
            <span>Sign in</span>
            <p>Already registered? Enter your details below.</p>
        </div>
        <div class="info">
            <h4>Email</h4>
            <input type="text" name="form.email" ng-model = "form.email"   ng-value="{{form.email}}" />
        </div><!-- /.info -->
        <div class="info">
            <h4>Password</h4>
            <input type="password" name="form.password" ng-model = "form.password"   ng-value="{{form.password}}"/>
        </div><!-- /.info -->
        <div class="last-2">
            <h4>Forgot your user name or password?</h4>
        </div><!-- /.info -->
    </div>
    <div class="modal-wrapper">
        <div class="buttons">
            <a class="grey-btn " ng-click="SignIn(form.email,form.password)"  href="javascript: void(0)" >Sign in</a>
        </div>
    </div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
whats, 2014-08-01
@whats

Autocomplete in Angular is turned off by default, it is simply not substituted into the model when you click on the dropped positions. You can implement your own, you can take a ready-made
plnkr.co/edit/il2J8qOI2Dr7Ik1KHRm8?p=preview

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question