julianfresco / broen

A starter theme for admin dashboards in front-end frameworks. Demo:
https://julianfresco.github.io/broen
0 stars 0 forks source link

Don't show caret in nav if no sub-items exist #13

Closed julianfresco closed 8 years ago

julianfresco commented 8 years ago

In the demo page, Dashboard is a top-level nav item which has no children. It also has a link to "dashboard". Nav items with these criteria should not show the caret.

// link exists, and no items - don't show nav carets
!!listitem.link && (!listitem.items || !listitem.items.length)
julianfresco commented 8 years ago

Actually, I used ngIf instead of ngHide, so the opposite condition was used:

!listitem.link && (listitem.items && listitem.items.length)