0
我在導航激活按鈕中有borderbottom行。 我的鏈接是ex。 http://localhost:3000/#/dashboard/wageAngular 2,子菜單僅在一個活動子菜單中需要borderbottom
與此代碼,我有活躍的2個按鈕與bottomborder - 儀表板和工資
CSS:
.sub-navbar li a:active {
color: white;
border-bottom: 4px solid #9ACD32;
background-color: #002b31;
}
<li *ngFor="let sub of nav.subMenu">
<a [routerLink]="'/dashboard' + [sub.link]" [routerLinkActive]="['is-active']">
{{sub.name}}
</a>
</li>
不需要..我們只需要獲得兒童鏈接並做主動,而不是+儀表板 –
@AgonFejza什麼? –