javascript - AngularJS - Bind input to value with filter and update it -


i have input bound object property , filter applied it.

<input value="{{object.field | filter}}"> 

the problem if programmatically change object.field, value displayed inside input doesn't change, in dom inspector see correct (new) value. verified digest/apply changes scope , object.field variable change correctly, issue seems in input displayed value.

i cannot provide example since there's code involved.

does know should errors??

no need set value in way. ng-model takes care of it. valid syntax is:

<input ng-model="object.field"> 

for filtering can @ answer: using angularjs filter in input element


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -