Within my main view, I have three directives that each display different sets of data.
<div>
<sales-view></sales-view>
</div>
<div>
<units-view></units-view>
</div>
Additionally, there is a group of buttons like so:
<div class="btn-group">
<button class="btn btn-primary" type="button">Sales</button>
<button class="btn btn-white" type="button">Units</button>
</div>
I am looking to toggle the visibility of these directives based on user selection, but I'm unsure whether this logic should reside within the controller or the directive itself.
Any assistance would be greatly appreciated as I am currently at a standstill with this issue.