我有以下代码
var myctrl = function($scope) {
$scope.items = [{value: 1, name:'Nitin'},{value: 2, name:'Vikas'},{value: 3, name:'xxx'}];
$scope.itemEdit1 = $scope.items;
$scope.itemEdit2 = $scope.items.name;
};
我只想将名称复制到 itemEdit2
我有以下代码
var myctrl = function($scope) {
$scope.items = [{value: 1, name:'Nitin'},{value: 2, name:'Vikas'},{value: 3, name:'xxx'}];
$scope.itemEdit1 = $scope.items;
$scope.itemEdit2 = $scope.items.name;
};
我只想将名称复制到 itemEdit2