Refreshing the Web Widget in single page applications (SPA) Follow

Comments

1 comment

  • Avatar
    Anders Eriksson (Edited )

    Solved it for loading MPWidgets;

    if (the _nRepData.MPWidgets.Data.length > 0) {
        if (typeof window.nanoRep !== 'undefined' && typeof window.nanoRep.MPWidget !== 'undefined') {
              window.nanoRep.MPWidget.loadMPData(0);
            }
    }

    // Else you add the MPWidgets data and load the script

Please sign in to leave a comment.

Powered by Zendesk