ng-model and value combination not working for input text box
I'm having two input text box. I need to combine the values entered in two text boxes and display it in the third. I'm able to display it if I use only the value in the third text box. Box 1: <input type="text" ng-model="entity.name"> Box 2: <input type="text" ng-model="entity.code"> Box 3:Box1+Box 2 <input type="text" value="{{entity.name+ ' + ' + entity.code}}"> However if I use a model name in the third box, the logic doesn't seem to be working: <input type="text" value="{{entity.name+ ' + ' + entity.code}}" ng-model="entity.fullCode"> Can anyone suggest a fix ?? This is a good question as