When user click on the tab,i want to display the value to <div class=
"col-sm-2" >
This is working code
*index.html*
<div class="row grid-divider" ng-controller='TopController' >
<div class="col-sm-2" >
<uib-tabset active="activePill" vertical="true" type="pills" >
<uib-tab ng-repeat="mod in api.modules" heading="{{mod.name}}" >
<div class="col-sm-5" style="font-size:2em; border-bottom:1px
solid #ecf0f1;">
{{mod.name}}</div>
</uib-tab>
</uib-tabset>
</div>
</div>
*Controller*
app.controller("TopController", function($scope){
$scope.api = details;});
var details = {
root_url : "http://abc/",
modules : [{
name : "Content",
methods : [{
name : "Service List",
method : "GET",
headers : [{
key : "Content-Type",
value : "application/json"
},{
key : "access_token",
value : "(String)"
}
],request : "",
response : {
"status" : "(Boolean)",
"code" : "(Integer)"
}
}
]
},{
name : "Payments",
methods : [{
name : "Wallets",
method : "GET",
headers : [{
key : "Content-Type",
value : "application/json"
},{
key : "token",
value : "(String)"
}
],
request : "",
response : {
"status" : "(Boolean)",
"code" : "(Integer)"
}
}
]
}
]};
This code display clicked values like this
<http://plnkr.co/edit/6aTqtJD1bjPB18do1Ovr?p=preview>
But i want it to display clicked values on green color area.like this
<http://plnkr.co/edit/jZkJ6XY3cVTolOIK2v6t?p=preview>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.