Updating Badge Values
Posted: 12 Nov 2017, 22:35
(this was originally incorrectly posted in the Omega section)
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.
Phil
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.
Phil