I am generation a side navigation, some of the objects have URL property and some don't (they are used for generating submenu).
my HTML template looks like this
<li *ngFor="let menu of navMenu;index as i" routerLink="{{menu.url}}">
....some stuff
</li>
I need that if the menu.url exist then do the routing , else do nothing , right now if menu.url don't exist it goes to / route.