In my Angular 2 application I\'m trying to disable a routerLink without any success. I\'ve tried to handle the click event on the click event (with event.
click
event.
Unfortunately, Angular doesn't seem to have a null value support for the routerLink.
However, this works for me. An example of my menu implementation:
Simply put, if a category has any subcategories, don't redirect, but open the subcategories. 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Simply put, if a category has any subcategories, don't redirect, but open the subcategories.