I have created a menu list, some menus having url and some have not. In case of a menu having url then only the href attribute shown otherwise only tag. I checked like below but it came href="#" in case of menu.Url empty.
<nav class="pushmenu pushmenu-left">
<ul class="main-navigation">
@* Here we will load only top level menu *@
<li class="hidepush" ng-repeat="menu in menus| filter:{ParentID : null} : true">
<a ng-attr-href="{{#{{ menu.URL }} || ''}}"><span class="{{ menu.css }}"></span> {{menu.Name}}</a>
</li>
</ul>
</nav>
Can anyone help. Thanks
ng-ifis one