I am facing a challenge with my HTML elements:
In one form-group
, I have the following input:
<div class="form-group">
<input type="search" ng-model="search"/>
</div>
This particular form-group
needs to be hidden when another form-group
is hidden. However, the first form-group
belongs to a different controller.
<div class="form-group" ng-controller="LogoutCtrl" ng-show="displayLogout">
<button type="button">Account Figures</button>
</div>
Essentially, once ng-show=displayLogout
takes effect, I need it to also impact the visibility of the first form-group
.
The issue here is that the first form-group
is controlled by a module called LinesCtrl
, while the second one is managed by LogoutCtrl
. Despite this, both elements are contained within the same navbar
.