Secondary Navigation root path HTL code explanation
I have created a "Secondary Navigation" component

and while creating backend HTL for this, I'm unable to achieve the desired output.
As I want it to take the "Navigation Root" path, whatever path has been provided instead of "currentPage" and iterate in that path to provide the child pages of the path provided in the "Navigation Root".
<li class="nav navbar-nav navbar-left" data-sly-repeat="${currentPage.listChildren}">
<a href="${item.path}.html">${item.title}</a>
</li>
Please provide the correct backend HTL code along with the java code (sling model).
Also explain the logic.

