Too bad, it's not working per your suggestion.  I even added 
$scope.cityStateZip = 
"$scope.mailing.city,$scope.mailing.state,$scope.mailing.zip";
to the controller, then.
tried 
<input type="text" name="cityStateZip" ng-model="ctrl.cityStateZip" 
value="{{ctrl.cityStateZip}}" size=35>
<input type="text" name="cityStateZip" ng-model="m.cityStateZip" 
value="{{m.cityStateZip}}" size=35>
respectively

What was I doing wrong?

On Thursday, July 7, 2016 at 10:23:52 PM UTC-4, Matheus Valeriano wrote:
>
> use only ngmodel. in this case is better use the controller to set value 
> to a variable and this variable you will use in the ngmodel
> <input type="text" name="cityStateZip" ng-model="ctrl.cityStateZip">
>
>
> Em quinta-feira, 7 de julho de 2016 21:33:38 UTC-3, Don escreveu:
>>
>> Hi,
>>
>> I need to put multiple expressions (values) in one INPUT field (see 
>> sample code below).  It seems to be working with Chrome browser, however, I 
>> still get behind-the-scene erorr of [ngModel:nonassign].
>>
>> <form>
>> <ul ng-repeat="c in contacts">
>>  <li><input name="cityStateZip" ng-model="c.city + ', ' + c.state + ', ' 
>> + c.zip" value="{{c.city}}+', '+{{c.state}}+', '+{{c.zip}}"> </li> 
>> </ul>
>> </form> 
>>
>> What is supposed to be the correct syntax for such a problem?
>>
>> 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to