Questions tagged [angularjs-ng-show]

The ngShow directive shows or hides the given HTML element based on the expression provided to the ngShow attribute.

From Angularjs documentation:

The ngShow directive shows or hides the given HTML element based on the expression provided to the ngShow 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). For CSP mode please add angular-csp.css to your html file (see ngCsp).

171 questions
2
votes
1 answer

angular (jquery timepicker) is unable to detect changes

Im new to angular and while doing a small exercise, i was struck and I wanted to enable the ng-show depending upon previous row timings and time input is through jquery timepicker, but my angular is unable to read the value of timepicker to show…
user5186342
2
votes
4 answers

Showing div in angularjs not working

I want to show a div only when the function happens. Here is the HTML, but it is always showing, I want it to show only when the function is true
Successfully triggered
user4538704
2
votes
1 answer

ng-show not updating the view

ng-show="my.message" is set to true in http success but it doesn't update the view. Here is my code: Controller Js: lgControllers.controller('FormCtrl', function($scope, $http) { $scope.my = { message: false …
Manik Arora
  • 310
  • 4
  • 12
2
votes
1 answer

Neither ng-hide nor ng-show change the visibility of the element

I began to use AngularJS, and I decided to make a list appear when I click on a button. My code is rather simple, but it doesn't work, and I don't understand why:

{{showLevels}}

Jean Gabriel
  • 155
  • 1
  • 14
2
votes
2 answers

Updating ng-show from different controller

I am trying to figure out how to update my ng-show variable when a state is changed. In my default index.html file I have: Since this is not part of my page1 template,…
bryan
  • 8,879
  • 18
  • 83
  • 166
2
votes
1 answer

Selective use ng-show in the context of ng-repeat

Using ng-repeat I want to use ng-model and ng-show to subjectively select an area to expand for the purpose of updating pet, place or points. Right now, it shows for all p in Pets within ng-repeat but I only want it to show for the single p's update…
rashadb
  • 2,515
  • 4
  • 32
  • 57
2
votes
1 answer

How to show list of data on flot bar chart click event with angularjs

I am pretty new to angularjs and flot bar chart I am trying to display filtered data in a list on click based on filters. I have created a custom directive to plot the chart and a custom filter which I use with data gotten on the click method but…
Ese
  • 73
  • 10
2
votes
1 answer

AngularJs not updating view variable

I am having a situation here, my website is built with angularjs. My entire routes are managed through angular. After my successful login, I redirect user to dashboard page. I have a show hide condition on an element, which stopped working now.…
jaybutani
  • 189
  • 1
  • 12
2
votes
1 answer

Use ng-click to show the right article using ng-show and ng-repeat

The following happens in the same controller. I have a page that shows a list of article titles. If the user clicks on an article title a popup will show the article in detail. The article titles are generated by a ng-repeat.
2
votes
2 answers

Configure ng-show and ng-hide speed

Please can I modify the speed of Angular's ng-show and ng-hide? jQuery has parameters to modify the speed of show() and hide(), so I'm just wondering if that can be done with Angular. Thanks
Ladmerc
  • 1,158
  • 11
  • 18
2
votes
1 answer

Animation on ngShow skips first time

I am trying to animate a twitter bootstrap panel body opening/closing that is shown with ng-show in angular (version 1.3.2), by using a simple jQuery slideUp/slideDown. (I tried at first with css transitions, but couldn't do it because of unknown…
YomY
  • 603
  • 6
  • 16
2
votes
1 answer

Angularjs data-ng-show not working

I'm an Angular beginner and I cannot figure out why the following code is not working. What I want to do is, display a message depending on the http api request. I get to the http success part every time, and then I set the ng-show attribute , and…
sameera207
  • 16,547
  • 19
  • 87
  • 152
1
vote
2 answers

ng-show and get element by id both are not working in ng-repeat table?

I am trying to use document.getElementById that is easy also ng-show in Angular.js I have table in which dynamically populated with three button at each row, when I click select button it shows me the remaining two buttons that are hidden for that…
Doc
  • 179
  • 1
  • 18
1
vote
1 answer

How to Show and Hide My Image and Video Section Without ng-click in AngularJS

I am working online courses project. I have multiple courses fetch from data with the unique id. And My courses Id have images or video. When I clicked on my courses Id then it redirects to this page(blow code) in this page I have two section one is…
1
vote
1 answer

AngularJS directives can't check for null

I am retrieving numbers (integer or float) from a MySQL database, and putting them in a form. I want a checkbox to be visible if the value is not null. However, ng-show and other directives don't seem able to check for null. Ideally, I want:
Gary31
  • 11
  • 1
1 2
3
11 12