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
1
vote
1 answer

angular js ng-show is not working

Html code:
{{store.name}}
{{store.price}} …
user2748161
  • 89
  • 1
  • 3
  • 15
1
vote
2 answers

How to set ng-show on a specific element through different views/controllers?

Plunker: http://plnkr.co/edit/0efF1Av4lhZFGamxKzaO?p=preview Below is my header, there is an ng-show="cornerLogo" which I only want to be set true on the about, login and register views, but false the home view.
1
vote
1 answer

do not include elements into ng-hide on form serialize

I gotta a single question, I'm using ng-show and ng-hide to display options on a form based on a select option, however, when I submit my controller looks like this: app.controller("MyCtrl", function($scope) { $scope.submit = function(event) { …
andresmijares
  • 3,658
  • 4
  • 34
  • 40
1
vote
1 answer

Angular ng-show not working

I have a button in a directive that I only want to appear on the last object in the array. The ng-show evaluates an expression on the controller.
1
vote
1 answer

Angular ng-show variable getting out of scope

I am trying to build a visual login/logout functionality this way: 1st time when opening the page, the Login link is visible and available, Logout is not. When I do submit Login dissapears and Logout is visible. I tried this with ng-show from…
anne
  • 43
  • 2
  • 8
1
vote
1 answer

ng-class disables ng-show for ng-table headers?

Stumbled across a weird bug, wondering if anyone has seen this or understands why it happens? I have an ng-table with dynamic headers and dynamic rows of data that loads on a query. Before the data loads, the headers can be filtered by a checkbox…
Jamie
  • 33
  • 2
  • 7
1
vote
1 answer

Evaluating an expression in AngularJS ng-show directive

Background: As part of a project I'm working on, Users (referred to as "artists" in the case below) can optionally select one or more from a series of Roles: Manager, Producer, Agent, and so forth. Consequently, I need to show or hide certain parts…
1
vote
1 answer

Onsenui infinit scroll + AngularJS ngShow

Im trying to show a loading block when the infinite scroll is loading more list items, and its ok for the first time, but the followings does'nt work. When "$scope.isLoading = true;" the block is not visible. HTML
Fiambre
  • 1,939
  • 13
  • 23
1
vote
1 answer

Ng-show is not dynamically adding element

I have a variable called won in my controller that toggles on and off but the ng-show is not dynamically hiding/showing the elements. Why? It seems to work when I initially set won = false/true but not while the application is running.
Andre Tran
  • 11
  • 2
1
vote
2 answers

Why angularjs ignore ng-if?

i try use ng-if, but angular no compile him. Look in test code:
Citrael
  • 542
  • 4
  • 17
0
votes
1 answer

problems with ng-show angularjs

ng-show did not work clearly for me in angular js. this is the "loading" div:
loading...
and that's the API call in the controller: function getNotifications(userId) { if…
0
votes
1 answer

Angularjs directive doesn't seems to be working could not able to resolve ngshow

Hi Guys I am an Entry level programmer for angularJS i tried to use ng-show but i dont know why its not been working. I used latest version of Angular js-1.7.9.
user9933943
0
votes
2 answers

Scope function executes but the HTML never changes

Scope of an AngularJS scope variable I have this in my HTML {{searchDialog.visible}} and this in my controller $scope.searchDialog = {'visible' : false}; // initialize $scope.MarkerClicked = function(e) { $scope.searchDialog.visible =…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
0
votes
1 answer

How to show another text value insteadof showing of existing from ng-repeat for one property using angularjs?

I have data: html:
  • {{item.text}}
js: angular.module('MyApp', []) .controller('MainCtrl', [function ($scope) { …
Dhana
  • 711
  • 3
  • 14
  • 40
0
votes
1 answer

How to show a element for each rows clicked in angularjs

I just want to make the marked and unmarked icon of each below appear based on the response from the server. I've read series of relevant questions but all seems to be ng-class related, I tried to apply them too but they seem not to be working, I'm…