3
I would like to make this form check the following data by clicking "Confirm" and if any of them is correct it will go to the next page.
MOCK:
$scope.cliente = [{
nome: "nomeedit",
senha: "senhaedit",
email: "[email protected]"
}, {
nome: "nomezinho",
senha: "senhazinha",
email: "[email protected]"
}, {
nome: "nomelegal",
senha: "senhalegal",
email: "[email protected]"
}, {
nome: "meunome",
senha: "minhasenha",
email: "[email protected]"
}, {
nome: "nome",
senha: "senha",
email: "[email protected]"
}];
HTML:
<div class="container" ng-app="ClienteApp" ng-controller="ClienteController">
<div class="form-group">
<div class="input-group">
<label>Nome:</label>
<input type="text" class="form-control" ng-model="nome">
</div>
<div class="input-group">
<label>Telefone:</label>
<input type="text" class="form-control" ng-model="telefone">
</div>
</div>
<a href="#" class="btn btn-sucess btn-sm" ng-click="consultar();">Confirmar</a>
Larissa, this question is much better than the other but avoid deleting old questions to put new ones with the same problem. In this case you can [Edit] the old one or give a reward.
– Sergio
Ah yes, I’m sorry.
– Larissa Mourullo