Questions tagged [ng-hide]

The ngHide directive shows or hides the given HTML element based on the expression provided to the ngHide attribute. The element is shown or hidden by removing or adding the ng-hide CSS class onto the element. The .ng-hide CSS class is predefined in AngularJS and sets the display style to none (using an !important flag).

The ngHide directive shows or hides the given HTML element based on the expression provided to the ngHide attribute. The element is shown or hidden by removing or adding the ng-hide CSS class onto the element. The .ng-hide CSS class is predefined in and sets the display style to none (using an !important flag).

See the AngularJS documentation for more information.

216 questions
-1
votes
1 answer

md-not-found should be shown only after 3 char in md-autocomplete

I'm using Angular Material md-autocomplete in that I'm haing md-not-found for showing message, if there is no suggestion. My Requirement: How to Hide the md-not-found, if searchText has length less than 3 Characters. I tried the following code, But…
-1
votes
1 answer

AngularJS hide div based on url/condition

This is my url - charts/53d25d91959679701e362f25 and when I add ?widget=true to that link charts/53d25d91959679701e362f25?widget=true I have to hide two particular divs in charts/53d25d91959679701e362f25 page. I've tried - ng-if="location.path()"…
user3876350
  • 27
  • 1
  • 7
-3
votes
2 answers

Should one alternate between ng-hide and ng-show or use only one with different values

My question is in regard of best practice / preferred readability in Angular 1.X with ng-show and ng-hide. When using ng-hide and ng-show, is it advised to stick to one and to alternate the value I am evaluating or should i alternate between the…
Frank Visaggio
  • 3,642
  • 9
  • 34
  • 71
-3
votes
2 answers

Angularjs - `ng-hide` with expression

How can I do an ng-hide inline expression like this: ng-hide="userType!=user" ?
sooon
  • 4,718
  • 8
  • 63
  • 116
-3
votes
1 answer

Hiding individual divs in ng-repeat loop

I have a ng-repeat loop, which displays individual panels (one for each loop iteration). In each panel I have a 'mark as read' button that has a ng-click event. I want to be able to hide the panel that the mark as read button is clicked on, but so…
StephenAdams
  • 521
  • 2
  • 9
  • 26
1 2 3
14
15