Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I have two elements, only one of them is supposed show at the same time while the other element is supposed to be hidden until the active element is made to disappear (button click)

I can't seem to get this to work, I have tried everything I can think of, please help me am new to angularJS

What I have tried:


first element

Toggle
second element



I have this in my controller

.......
$scope.show = true;
$scope.toggle = function (){
$scope.show =!$scope.show;
}
.......

the first element disappear when I click a button but the second one doesn't appear.
Posted

1 solution

why doesn't my HTML source code show?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900