Not really (I don't think so, at least). I'm not sure I understand why wou would want to do that either - if the same value's going into two different spots (name and ID), just pick a name for the variable and use it elsewhere.
If you absolutely *must* make one value track another, check out $scope.$watch - you can put a watch on both variables, and when one changes, update the other. You'll probably have echo problems unless you're very clever, but it's probably feasible. I'd still rather just use one thing to track data if it's the same data. e On Sat, Aug 16, 2014 at 8:19 AM, Christian Nwamba <[email protected] > wrote: > Is there a way to add two bindings to a textbox: > Say <input type="text" ng-model"CustomerID" ng-model="CustomerName"> > > then it can be referencenced by two other text boxes > > Say <input type="text" ng-model="CustomerID"> > > and > > <input type="text" ng-model="CustomerName"> > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
