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
0
votes
1 answer

AngularJS ng-hide/show label/button if length(description) < 20

I need to show/hide label if length(description) < one row. Code is working ok, but if length < one row, label isn't hide. How to hide/show label? If [[ demandAd.description ]] less than one line or less than one row(or length < 100), I need to hide…
0
votes
1 answer

hide header on first anchor_menu full space scrolling Angular4

I'm currently working on my website using angular4. I want to create something like tumblr page with using full page scrolling. Everything is ok now with side list and couple of slide. However, I want to hide the fixed header on only the first page.…
0
votes
1 answer

MEAN STACK AngularJS View page gets loaded before the Angular Service Response

I have the following view controller. 'use strict'; angular.module('servers').controller ('PlcsrvnonprodsController', ['$scope', '$stateParams', '$location', 'Authentication',…
0
votes
0 answers

Hide specific value in view (Angularjs)

I try to hide a specific value in my view page using angularjs. For that i tried using the ng-show and ng-hide but all values are still there. Html …
C0deSlayer
  • 45
  • 9
0
votes
2 answers

ng-hide not working inside button Ionic 1

taskDetails.task_id value is String and its…
Rajitha Perera
  • 1,581
  • 5
  • 26
  • 42
0
votes
1 answer

Hide parent block when child element is not present while searching in searchbox

How do I hide the parent element when a child element is not present while searching in the search box. Here is my code:
0
votes
1 answer

Using ngAnimate with ng-show/ng-hide

I have this html:

0
votes
1 answer

ng-if validator not working properly

I'm trying to show a phrase using ng-if / ng-show (with less or bigger than condition) validator but its not working 100% correct. Here's my code:

No…

0
votes
0 answers

AngularJS - how to hide a button when a text box input is empty?

I have an AngularJS app, and on one of the pages, I have a widget displayed. I have added a button to the widget, which takes the user to the 'Home' page of the app. I have also added a field to the 'Settings' dialog for the widget, which allows the…
Noble-Surfer
  • 3,052
  • 11
  • 73
  • 118
0
votes
1 answer

ng-hide on in NgMap is not working

I'm trying to use ng-hide to hide polylines whose particular value is empty. But its not workin , i'm getting a black polyline and i can't get rid of it.
Amit Singh
  • 1,790
  • 3
  • 17
  • 27
0
votes
1 answer

AngularJS- how to hide elements using ng-hide?

I have an app that has been written in AngularJS, and am currently trying to add the functionality to hide the headings of some widgets displayed on one of the web pages when the user selects a checkbox to indicate that they should be hidden. At the…
Noble-Surfer
  • 3,052
  • 11
  • 73
  • 118
0
votes
2 answers

how to compare 2 string values for ng-hide

I'm trying to compare a value of an object file.name to see if it matches 2 strings but it doesnt seem to be working right. Not exactly sure what i'm doing wrong...is it because i can't compare more than 2 strings in a or comparator like…
jeremy
  • 433
  • 1
  • 8
  • 30
0
votes
1 answer

How to hide selected list item from list in angular2 template?

I am trying to hide list item which is selected and added to another list but don't know what to apply so added item does not show in list.
0
votes
1 answer

ng-show ng-hide not working

I'm trying to hide a section when a variable is null. Asesor {{asesor}}

Ver perfil

0
votes
2 answers

Hide section if no option selected in angular ng-hide

I have a two selection boxes. One that is populated depending on the selection of the first box. I wish to hide the second box if nothing is selected in the first. I have tried the following but cant seem to get the box to show once you select a…
Beep
  • 2,737
  • 7
  • 36
  • 85