Good morning, I'm a beginner with Web, although I know how to program in other languages. My question is as follows, via the path cep I got the algorithm that fills the address fields through a Javascript.
My imput is this:
input class="form-control" type="text" id="rua" ng-model="cadastro.endereco.endereco" maxlength="60"
Javascript fills in the input when you type the zip, but at the time of saving, the data that was completed by js is NOT saved. Only the Zip Code, Number and Add-in that were entered manually. can anybody help me? Thank you.
I did so, I used the script of this site link
to buck the address through the zip. so I put the same id in js to fill the text area.
input class="form-control" type="text" id="street" ng-model="cadastro.endereco.endereco" maxlength="60"
It fills in perfectly, it happens that at the time of saving, the fields that were filled by the script are left blank, only the fields that I typed manually as the number and complement of the address
I have found that by default AngularJS requires fields to have some user interaction to perform binding. Does anyone know how to force binding to the input field or else disable this in the angular? Thank you.