I have three different anchors, and I want each one to trigger the display of a unique full-width div below it. The behavior should be similar to the way it works on the iPad example found at this site:
For instance, clicking on the first anchor should open the first container, while clicking on the second anchor should close the first one and open the second.
Is it possible to use ng-click to toggle an active state for this functionality? Should this be implemented within the controller?
Below is the HTML code for the row with the anchors. The content to be displayed is in a separate container. Any assistance or suggestions would be greatly appreciated.
<div class="row">
<div class="col-xs-12 col-md-4">
<a href="" class="box-anchor active">
<div class="box box-drop ">
<h3>Data Explorer</h3>
<p>Itβs a brave new data world. Explore and navigate new realms of possibility such as post density, sentiment analysis, and even sort by hue and saturation.</p>
</div>
</a>
</div>
<div class="col-xs-12 col-md-4">
<a href="" class="box-anchor">
<div class="box box-drop">
<h3>Analytics</h3>
<p>Exciting twists on old standards, Socialight's analytic platform allows you to analyze any social account in the world. Track your competitors and make informed, comparative decisions for your next campaign.</p>
</div>
</a>
</div>
<div class="col-xs-12 col-md-4">
<a href="" class="box-anchor">
<div class="box box-drop">
<h3>Export & Embed</h3>
<p>Enliven billboards, websites, or TV screens with tailored feeds of tagged content from your Data Explorer. Improve your next transfer all of this useful information to outward facing products.</p>
</div>
</a>
</div>
</div>
</div>
Here is a screenshot depicting what the layout looks like. The top row consists of the anchors that control the content shown below.