Page 1 of 1

Updating badge value of rendered menuitem

Posted: 09 Nov 2017, 21:51
by phill_jones
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.

Re: Updating badge value of rendered menuitem

Posted: 01 Dec 2017, 12:14
by cagatay.civici