Updating badge value of rendered menuitem
Posted: 09 Nov 2017, 21:51
Hi,
I am trying to dynamically update the badge value after the initial render, is there a simple way of doing this that I am missing?
For example
badgeValue: number = 10;
...
items: [
{ label: 'All Incoming', icon: 'im-icon im-icon-phone-incoming', badge:badgeValue:number , routerLink: ['/calls/all'] },
...
10 will be correctly displayed as badge number.
However, updating badgeValue = 12 will not reset the badge value displaying the rendered menu. What am I missing?
Many thanks.
I am trying to dynamically update the badge value after the initial render, is there a simple way of doing this that I am missing?
For example
badgeValue: number = 10;
...
items: [
{ label: 'All Incoming', icon: 'im-icon im-icon-phone-incoming', badge:badgeValue:number , routerLink: ['/calls/all'] },
...
10 will be correctly displayed as badge number.
However, updating badgeValue = 12 will not reset the badge value displaying the rendered menu. What am I missing?
Many thanks.