Well guys I'm starting to study angularjs, and in my application I wanted to do something like this.
I have a dropdown menu and I also have some tabs that I created manually. When I clicked on a menu item I wanted to make this tab receive the view but I'm not getting it. The maximum I did was when I clicked the tab change the corresponding content using the routes.
<div class="btn-group">
<button type="button" class="btn btn-primary" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Action <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#create">Action</a></li>
<li><a href="#list">Another action</a></li>
<li><a href="#list">Something else here</a></li>
</ul>
</div>
<div class="container" ng-init="tab=1">
<ul class="tabs-nav">
<li><a ng-click="tab=1" href="#edit" ng-class="{'active' : tab==1}">Aba 1</a></li>
<li><a ng-click="tab=2" href="#list" ng-class="{'active' : tab==2}">Aba 2</a></li>
<li><a ng-click="tab=3" href="#create" ng-class="{'active' : tab==3}">Aba 2</a></li>
</ul>
<div class="tabs-container">
<div class="tab-content" ng-show="tab == 1">
<div ui-view="main"></div>
</div>
<div class="tab-content" ng-show="tab == 2">
<div ui-view="main"></div>
</div>
<div class="tab-content" ng-show="tab == 3">
<div ui-view="main"></div>
</div>
</div>
</div>
It's a basic example but what I'm doing is the following, I have tabs and in those tabs when I click on them they load the contents until ok. But what I wanted was when I clicked on the menu link one of the tabs received the view that I would configure. As I mentioned earlier I am using the routes to change by clicking on the tabs just wanted to do through the menu I am not able to link the menu with the tabs. If anyone has a solution for this, thank you.