Updating badge value of rendered menuitem

Post Reply
phill_jones
Posts: 7
Joined: 12 Feb 2017, 23:56

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.

cagatay.civici
Prime
Posts: 18108
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

01 Dec 2017, 12:14


Post Reply

Return to “Omega - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest