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?
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.