Hello,
i have a problem with ng-click. when i try it inside ion-view tags it work very well, but when i place it in top bar nothing happen on click. the code is very simple, when i click on this image a div area is showen, when i click again it dissapears.
and this is my function $scope.showsr = function(){ if ($scope.showSearchForm == false){ $scope.showSearchForm = true; }else{ $scope.showSearchForm = false; } };
I have no error in the console, what happen is just the function inside the ng-click is not triggered at all. Maybe because the image is in the index file and not inside the template, and ng-click work only for template elements.