CoreUI PRO for Angular v5.7.25 - Declarative Nav Groups and Enclosed Nav Variants
We are pleased to announce the release of CoreUI PRO for Angular v5.7.25. This release adds c-nav-group, c-nav-group-items and c-nav-title, so navigation groups can be written in the template, brings the enclosed and enclosed-pills variants to Nav and Tabs, fixes several Sidebar navigation issues, and removes the library’s dependency on @angular/animations. The library is built for Angular 22.1.4.
Speed up your responsive apps and websites with fully-featured, ready-to-use open-source admin panel templates—free to use and built for efficiency.
How to Update
To update to CoreUI PRO for Angular v5.7.25, run:
ng update @angular/core@22 @angular/cli@22 @coreui/coreui-pro@~5.27.0 @coreui/angular-pro@~5.7.25
- Please ensure that there are no error messages in the results.
- Download the latest PRO packages from CoreUI Downloads.
What’s New
Declarative Nav Groups
The new c-nav-group, c-nav-group-items and c-nav-title components let you write a navigation group in the template, instead of only feeding it to c-sidebar-nav as data through navItems:
<c-sidebar-nav>
<c-nav-title>Forms</c-nav-title>
<c-nav-group toggler="Pickers">
<c-nav-item href="/forms/date-picker">Date Picker</c-nav-item>
<c-nav-item href="/forms/time-picker">Time Picker</c-nav-item>
</c-nav-group>
</c-sidebar-nav>
c-nav-grouptakes atogglertext or atogglerTemplate, avisibleinput with avisibleChangeoutput, andcompact.- Groups behave as an accordion per level, and a collapsed group keeps the state of its nested groups.
- Collapsing reuses the
cCollapsedirective.
Nav and Tabs Improvements
- Enclosed variants:
c-navandc-tabs-listacceptvariant="enclosed"andvariant="enclosed-pills". - Nav role:
c-navhas a newroleinput that defaults tonavigation. - Nav item link:
c-nav-itemrenders acNavLinkanchor whenhrefis set and forwardsactive,disabledandtabindexto it; withouthrefit projects its content as before.
Bug Fixes
- Nav Link: The
disabledattribute is set only on elements that support it; other elements getaria-disabledandtabindex="-1". An unset numeric binding no longer writestabindex="NaN", and an active link opens every group above it, sorouterLinkActivereveals the current route. - Sidebar Nav: The group’s nav stays displayed while it collapses, so closing animates instead of snapping shut.
- Sidebar Nav:
.nav-itemis a block again, restoring its top margin.
Improvements
- Sidebar Nav: Groups collapse with
cCollapseand CSS transitions instead of@angular/animations. - Sidebar:
c-sidebar,c-sidebar-navand its groups and links no longer setChangeDetectionStrategy.Eager, so they use Angular 22’s defaultOnPushchange detection. - Dependencies:
@angular/animationsis no longer used by the library. It was removed from the peer dependencies and from the packages theng addschematic installs.
Dependency Updates
We have updated key dependencies to their latest compatible versions for CoreUI PRO for Angular v5.7.25:
Angular Core Updates
@angular/animationsremoved - no longer a dependency or peer dependency of the library
Development Tools
typescript-eslintto:8.69.0
Migration Notes
No breaking changes were announced in the published release notes. After upgrading:
- Install updated dependencies.
- Run your test suite and verify the build.
- CoreUI no longer needs
@angular/animations. If nothing else in your application uses Angular animations, you can remove the package and itsprovideAnimations()/provideAnimationsAsync()setup. c-navnow rendersrole="navigation"by default. Where your nav plays a different role, set theroleinput explicitly. Itsvariantinput no longer accepts an empty string.
For the latest package files and update access, visit CoreUI Downloads.



