Abdulrhman Alsri
Abdulrhman Alsri

Reputation: 1727

how can I display this tab content based on an event

for the tab component here is there a way that I can display or show the tab contents or let us say open the tab .. where that is based on an event or using $scope.

Upvotes: 0

Views: 32

Answers (1)

sjm
sjm

Reputation: 5468

It sounds like you want to set the active tab for Angular Boostrap UI like so:

$scope.tabs[0].active = true;

where $scope.tabs is:

$scope.tabs = [
  { title:'Dynamic Title 1', content:'Dynamic content 1' },
  { title:'Dynamic Title 2', content:'Dynamic content 2', disabled: true }
];

Upvotes: 1

Related Questions