I'm trying to make one of the tabs active (tabs are already in the template), depending on some url params. Unfortunately, it always make active by default the first one found in the html template, even if I use a ng-repeat as in this example.
This doesn't work:
$scope.tabs = {
title2: {active:false, content:"Hello world 2!"},
title3: {active:false, content:"Hello world 3!"},
title4: {active:false, content:"Hello world 4!"}
}
$scope.tabs.title4.active = true;
Here is a fiddle: http://jsfiddle.net/alexrada/KFAXH/5/