Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 角度-ng可嵌套删除项_Angularjs - Fatal编程技术网

Angularjs 角度-ng可嵌套删除项

Angularjs 角度-ng可嵌套删除项,angularjs,Angularjs,我已经将ng nestable特性添加到我们的项目中。我在这段代码中添加了一个按钮-我正在尝试连接此按钮以从集合/json中删除项-它不喜欢或不允许ng单击-当您在其中一段中单击时,它认为我正在重新排序选择。我需要有能力从我的列表中删除项目 <div ng-nestable ng-model="mdl"> <div class="board-master__contentItem">

我已经将ng nestable特性添加到我们的项目中。我在这段代码中添加了一个按钮-我正在尝试连接此按钮以从集合/json中删除项-它不喜欢或不允许ng单击-当您在其中一段中单击时,它认为我正在重新排序选择。我需要有能力从我的列表中删除项目

<div ng-nestable ng-model="mdl">
                            <div class="board-master__contentItem">
                                <div class="board-master__contentItemLeft">
                                    {{item.text}}
                                </div>
                                <div class="board-master__contentItemRight">
                                    <div class="btn-warning btn board-master__footerButton" ng-click="RemoveFromBoard($item)">Remove</div>
                                </div>
                            </div>
                        </div>

{{item.text}
去除

尝试在有
ng click
的元素上连接
ng mousedown
,并在mousedown事件上调用
stopPropagation
方法

尝试在有
ng click
的元素上连接
ng mousedown
并在如果你能帮我做这件事,我会圆满结束这一天。如果你能帮我做这件事,我今天会有个圆满的结束。