2
I’m making a screen that has some tabs, I don’t have much familiarity with it, so I’m making an example:
<div>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
<li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
<li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home">teste</div>
<div role="tabpanel" class="tab-pane" id="profile">teste</div>
<div role="tabpanel" class="tab-pane" id="messages">teste</div>
<div role="tabpanel" class="tab-pane" id="settings">teste</div>
</div>
</div>
But it turns out that the whole project is done in angular, and we use routes to access the pages,ok... the screen with tabs usually opens everything right, but by clicking on a tab to change its content, the site goes back to the home page, someone knows how to fix it?
Are these tabs bootstrap? If so, make sure you’ve included bootstrap.js in your html file.
– Felipe Coelho
Got it, thanks, instead of href I used data-target.
– Brayan