Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

routerLinkActive in dropdown main text

<ul class="nav nav-tabs">
  <li class="pull-right" [routerLinkActive]="['active']">
    <a class="dropdown-toggle" data-toggle="dropdown"> More <span class="caret"></span></a>
      <ul class="dropdown-menu">
        <li><a [routerLink]="['/profile/link1']">Link 1</a></li>
        <li><a [routerLink]="['/profile/link2']">Link 2</a></li>
      </ul>
  </li>
  <li class="pull-right" [routerLinkActive]="['active']"><a [routerLink]="['/profile/feature1']">Feature1</a></li>
  <li class="pull-right" [routerLinkActive]="['active']"><a [routerLink]="['/profile/feature2']">Feature2</a></li>
</ul>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #routerLinkActive #dropdown #main #text
ADD COMMENT
Topic
Name
7+6 =