In my directive I have this code:
// hide all drodowns with this attribute
$(document).find('[dropdown]').each(function (index) {
if ($(this).is(':visible')) {
var a = $(this).attr('ng-show');
???
}
});
At the place of the question marks I want to do the following: get the value of the ng-show attribute and set this value to false. The value I get from jQuery is for example this: showActionsDropdown. This value is a variable in my scope.
What I'd like to know is how I can change the value of showActionsDropdown to true.
showActionsDropdownvariable directly. You do not change ng-show attribute with jQuery.