Javascript – Angular variables value not updated after receiving data
I've a piece of code in ts file as follows totalCrList : number = 0; tabs: [] ngOnChanges() { //some code this.someFunc(); this.tabs.push({ "id": "tab3", "title": `Associate / Linked Change Request (${this.totalCrList ? this.totalCrList : ''})`, //always displays '0' "active":…