编辑时在angularjs的下拉列表中进行多重选择

时间:2019-02-06 10:11:15

标签: angularjs angularjs-directive

错误:无法在数字“ 10”上创建“已勾选”属性

$scope.alldepatmentdata = response.data.data[0];
            if ($scope.alldepatmentdata != undefined) {

                //department Name
                $scope.department_name = $scope.alldepatmentdata.department_name;
                $scope.user_name = $scope.alldepatmentdata.department_user_role_id
console.log($scope.user_name);
                angular.forEach($scope.user_name,function(value,key)
                {
                console.log(value);
                value.ticked = true;
                });

我正在获取值,但它是showhing tick属性,并且我在html中有Ticked Prperty。 这是我的HTML

 <div isteven-multi-select input-model="user_name" output-model="user_nameSelected"
                                    button-label="icon fullname" item-label="icon fullname maker" tick-property="ticked"
                                    ng-disabled="disabled">
                                </div>

0 个答案:

没有答案