Hector Trevino Amaro
02/12/2020, 7:06 PMMyAccountMenu
addSubEntry
function to add a link on the header menu. I define MyAccountMenu
and execute the getInstance
function, but I get an error that it's not a function. Strangely enough, when I log MyAccountMenu
variable, it shows getInstance as one of it's functions. This is in SCA 2019.2Steve Goldberg
02/12/2020, 7:10 PMSteve Goldberg
02/12/2020, 7:11 PMcontainer.getComponent('MyAccountMenu')
. There's no need to get its singleton – use the methods described in the API documentation and the side nav will automatically re-render when changes are madeHector Trevino Amaro
02/12/2020, 7:13 PMHector Trevino Amaro
02/12/2020, 7:14 PMAdvanced/Header/JavaScript/MyAccountMenu.ts
thinking that the addSubEntry
function is something I could call if I had it defined. I looked at the Frontend Extensibility API document for MyAccountMenu
and I do not see that function thereSohan Kumar Dash
02/13/2020, 4:45 PMSohan Kumar Dash
02/13/2020, 4:46 PMHector Trevino Amaro
02/13/2020, 7:10 PM