Skip to content
This repository has been archived by the owner on Nov 24, 2017. It is now read-only.

Default tab selection is not happening #14

Open
basheer-imaginea opened this issue Jun 16, 2016 · 2 comments
Open

Default tab selection is not happening #14

basheer-imaginea opened this issue Jun 16, 2016 · 2 comments

Comments

@basheer-imaginea
Copy link

<li ng-class="{ active: item.isSelected() }" class="active">

active not getting added for default selection tab. it's getting added only when you click on any tab.

please provide the solution for this or show me some working example.

Thanks.

@abkieling
Copy link
Contributor

abkieling commented Jul 5, 2016

@basheer-imaginea, when defining the defaultPage(), make sure you specify the isValid property and call the yes function.
Here is an example where Test 5 is the default tab:

tabs.push(builder.create()
                  .id('test5')
                  .title( function() { return 'Test 5'; })
                  .href( function() { return '/many/5'; })
                  .defaultPage({
                    isValid: function(yes, no) { yes(); }
                  })
                  .build());

@abkieling
Copy link
Contributor

@basheer-imaginea is this issue still happening?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants