Essentially, I am facing a challenge on my page where a control needs to toggle two different elements with two distinct CSS classes upon being clicked.
While I have successfully managed to toggle one of the controls, the other remains unchanged.
Here is the main element in question:
This particular element should trigger both controls upon clicking.
<a id="main-menu-toggle" data-toggle="collapse" data-target="#sidebar" class="hidden-xs open"><i class="fa fa-bars"></i></a>
The first control (currently toggling):
<div id="sidebar" class="col-lg-2 col-sm-1 collapse" style="min-height: 759px; display: block;">
</div>
And here is the second control (to be added):
For this specific element, I aim to apply the CSS class 'full' when the button is clicked and then remove it upon another click.
<div id="content" class="col-lg-10 col-sm-11 full">
</div>
Despite attempting to modify the hyperlink control, the functionality still does not align as intended:
<a id="main-menu-toggle" data-toggle="collapse,full" data-target="#sidebar,#content" class="hidden-xs open"><i class="fa fa-bars"></i></a>
Any suggestions on how I could achieve this using AngularJS would be greatly appreciated.