Nested list and correct ng-model and ng-value in AngularJS 1.5.x
<p>I've got a nested list/array in AngularJS as:</p>

<pre><code>$scope.myCars = [
    name: 'Audi', types: [
        {name: 'A4', price: '150000'},
        {name: 'A6', price: '250000'},
        {name: 'A8', price: '350000'}
    ],
    name: 'BMW', types: [
        {name: 'M1', price: '250000'},
        {name: 'M3', price: '450000'}
    ]
];
</code></pre>

<p>I'm looping through the list and generate DOM by:</p>

<pre><code>&lt;ul&gt;
    &lt;li ng-repeat="car in MyCars"&gt;
        {{car.name}}:
        &lt;ul&gt;
            &lt;li ng-repeat="type in car.types"&gt;
                {{type.name}}:
                &lt;input ng-model="type.name" ng-value="type.price"&gt;
            &lt;/li&gt;
        &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>It does show everything correctly, but when I update a price in the input-field, my $watch in $scope.myCars change the type.name instead of type.price - which is wrong.</p>

<p>Am I doing things correctly, or?</p>