mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
3ee8c75eff
Modify routerLinkActive to optimise performance by removing unnecessary iteration. By replacing Array.reduce with Array.some, the loop will break when it finds an active link. Useful if used on the parent of a large group of routerLinks. Furthermore, if a RouterLink is active it will not check the RouterLinkWithHrefs.