Control sidebar Angularjs

Asked

Viewed 172 times

0

Good morning guys. I’m new to the forum and the world of web programming. I took some courses of Angularjs I am developing my first application and a question arose as to the code I am using. I need the siderbar(navbar) to be collected whenever there is a click on the menu.Below is the code:

<a href class="sidebar-toggle" data-toggle="offcanvas" role="button">
  <span class="sr-only">Toggle navigation</span>
</a>
<div class="navbar-custom-menu">
  <ul class="nav navbar-nav">
    <li class="dropdown messages-menu" ng-include="'/template/header/navbar/messages.html'"></li>
  </ul>
</div>

Could someone help me(with Angularjs)? Thank you very much.

  • <a href class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <div class="navbar-custom-menu"> <ul class="Nav navbar-Nav"> <li class="dropdown messages-menu" ng-include="'/template/header/navbar/messages.html'"></li> </ul> </div>

  • Boris, edit your question and put the code that is in the comment in the question to be more readable and easy to understand. Are you using Boostrap? If so, which version?

  • Hello Ricardo thanks for the tips. Yes I am, using Bootstrap v3.3.7 and Angularjs v1.6.6

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.