M
M
Maxim Ivanov2016-07-12 12:45:41
Angular
Maxim Ivanov, 2016-07-12 12:45:41

Why is value not displaying when using angular?

7bb3ca8816694eb498ad9d2767712d1b.png
I specified value, but the inputs remain empty, why is this so?

<form novalidate class="css-form">
               
<input type="text" class="myinp loginame" placeholder="Логин" value="login.0" name="login" ng-model="user.name" required>
<input type="password" class="myinp password" placeholder="Пароль" value="password.0" name="password" ng-model="user.email" required>

                <div class="clicker">
                  <button class="btn waves-effect waves-light" ng-click="forsend(user)">
                    Войти
                    <i class="material-icons right">send</i>
                  </button>
                
                </div>
</form>

9d4078bb00fd40aea8e6e7fac1a901c4.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Ivanov, 2016-07-12
@splincodewd

stackoverflow.com/questions/10610282/angularjs-val...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question