Linked Questions

-2 votes
2 answers
1k views

Angular Change dynamically div's visibility with ng-model [duplicate]

I'm trying to change dynamically the visibility of the div with ng-show="models.show" the following code, was my first thoughts: but it's not working. html <div ng-init="models.show=false" ...
Alvaro Silvino's user avatar
0 votes
1 answer
194 views

AngularJS ng-show and ng-hide does not change state after $http call [duplicate]

I want to show dynamically the REST respont data after an AngularJS $http.get() call. The answer arrives fine The data bindings {{showOrderStateTrigger}} and {{orderDetails}} inserted just for test ...
SOLID Developper's user avatar
2 votes
0 answers
143 views

Angular ng-show - expression inside [duplicate]

I have such problem - I use ng-show to show element and it's base on two things and looks like <div ng-show="{{!data.length && loaded}}"></div> Web inspector shows ng-show="true" ...
Kosmetika's user avatar
  • 21.3k
4 votes
4 answers
1k views

Ng-Show & Ng-Hide, what is the difference?

I'm teaching myself Angular-JS and I can't find any sort of definitive answer on what the difference between ng-show and ng-hide is. To me they appear to be functionally equivelant. I understand the ...
Vistari's user avatar
  • 717
2 votes
2 answers
6k views

catch ng-show event and focus input field

I don't want to write complicated directive just to focus something. If the approach would be using the pure js it is acceptable. My question is how to catch the ng-show of angular. <a ng-click="...
user3398172's user avatar
0 votes
3 answers
1k views

AngularJS good practice : Hide/show new DOM elements or compile

I'm new to AngularJS and I want to change the behavior of a button dynamically. As I am used to JQuery, I use element.attr('ng-click', 'controller.function()'); But, as I understood AngularJS needs ...
ogdabou's user avatar
  • 592
-1 votes
2 answers
2k views

Angularjs button hide and show

I am new to Angularjs. I have 4 buttons "edit, Reset password, ok, cancel'. When the page loads I have to show edit and Reset password buttons. When I click edit "ok and cancel " buttons should be ...
Vidi Samy's user avatar
1 vote
2 answers
1k views

ng-show is not working in angularjs

my json responce is {isVimeo = true } in angular js <div ng-show={{isVimeo}}> ---- ---- ------ </div> I want to show this div when isVimeo is true,but it is not display at my ...
Srikanth's user avatar
1 vote
2 answers
1k views

How to hide certain elements in angular, based on the ng-class?

I have following code: <tr ng-repeat="version in allVersions" ng-class="{{ version['active'] == 'true' ? 'active' : 'inactive' }}"> </tr> I'm creating the ng-class based on the object ...
batman's user avatar
  • 4,948
-3 votes
3 answers
736 views

making div visible or invisible depend on condition [closed]

<div class="ddown"> <button class="dbtn">ABC</button> </div> I want to make this div hide/show when a checkbox is checked/unchecked, how can I achieve this?
user3756799's user avatar
-1 votes
2 answers
2k views

Angular: Hide component from controller [duplicate]

So I'm knew to AngularJS(1.6.4). I have a component that I would like to hide/show programmatically using the controller. Unfortunately, I don't understand how to grab hold of my component, and then ...
Black Dynamite's user avatar
-1 votes
1 answer
482 views

How to Show and Hide div using AngularJS? without using any css or jquery

I want to hide a div and show it on button click using angularJS? I used ng-show and ng-hide but it's not working
Varun Kumar's user avatar
-1 votes
1 answer
311 views

Show and hide button using scope in angularjs

I want to hide button on specific action. For example when i show the Organization units record I want to hide locate button. Which is in the table grid. Grid is showing the records of cities and ...
imadfooki fooki's user avatar
0 votes
2 answers
229 views

Update Item in List to be shown when tapped - Angular JS

I have a list that shows some items, here is the code that generates my list in my controller: $scope.multipleOptions = [{ item: '1', checkmark:false}, { item: '2', checkmark:false},{ item: '3', ...
iqueqiorio's user avatar
  • 1,187
2 votes
2 answers
97 views

AngularJS $scope variable does not go into view

I have a simple boolean variable that switches a DIV to be hidden at startup and then shown after an action until the end of the application. But it does not switch - the DIV is always hidden. Please ...
kabeen's user avatar
  • 391

15 30 50 per page