<div ng-hide = "isShow" class = "ng-show"></div> //被隱藏和顯示的div塊
<input ng-click = "swap()" type = "button" value = "點(diǎn)擊有效果"> //點(diǎn)擊這里隱藏或顯示
<script>
$scope.isShow = false;
$scope.swap = function(){
$scope.isShow = !$scope.isShow;
}
</script>//只寫(xiě)重要代碼