JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app ng-controller="ExampleCtrl">
    <ul ng-repeat="item in list">
        <li>{{ item.name }}
            <ng-switch on="item.name">
                <span ng-switch-when="b">
                    <input type="number" ng-model="$parent.$parent.value" />
                    {{ value }}
                </span>
            </ng-switch>
        </li>
    </ul>

    value is {{ value }}
</div>

JavaScript

function ExampleCtrl($scope) {
    $scope.list = [
        { name: "a" },
        { name: "b" },
    ];

    $scope.value = 5;
}