Is there a way to do a ng-hide on a html div?

后端 未结 4 1902
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 03:53

I am trying to hide my div that has id=\"crossfade\" where there is an ng-click event.

1) Is this possible? 2) What am I doing wrong?



        
4条回答
  •  遥遥无期
    2021-01-24 04:39

    # # # # #

    and in the controller set

    $scope.hideCrossfade = true;
    

    probably inside the function getData.

    I would recommend not using ids in angular. Also, ng-show, ng-hide, ng-if = "someFunction()" is also generally discouraged.

提交回复
热议问题