Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.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 mouseover在鼠标悬停时隐藏和显示输入元素_Angularjs - Fatal编程技术网

Angularjs 如何使用ng mouseover在鼠标悬停时隐藏和显示输入元素

Angularjs 如何使用ng mouseover在鼠标悬停时隐藏和显示输入元素,angularjs,Angularjs,这是我的密码:- <div class="input-group"> <input class="form-control" ng-model="name" required /> <span class="input-group-btn"> <button class="btn btn-primary" type="button" > <i class="fa fa-plus"&

这是我的密码:-

<div class="input-group">
    <input class="form-control" ng-model="name" required />
    <span class="input-group-btn">
        <button class="btn btn-primary" type="button" >
               <i class="fa fa-plus"></i>
        </button>
    </span>
</div>
打开的位置是:-

$scope.open = true;
我认为
ng mouseover
是更好的选择,但如果有其他简单的方法。。。。请告诉我
var-app=angular.module(“testApp”,[]);
app.controller('testCtrl',函数($scope){
$scope.open=false;
});

在这里显示按钮鼠标!!!
按钮

正常,但当我离开鼠标时,我希望它消失
$scope.open = true;