Spin the wheel
To integrate Nudges from Nudge into Web, you need to make sure that the basic integration of the nudge_core_browser
SDK is done, if you have not already done it, check here.
Import the NudgeSpinTheWheelUi
module from nudge_core_browser
import { NudgeSpinTheWheelUi } from 'nudge_core_browser';
Initialize the NudgePopupsUi
class
var spinTheWheel = new NudgeSpinTheWheelUi();
- Just add the above-defined variable to the list in the
plugins
property ofNudgeProvider
new NudgeProvider({nudgeInstance: nudge, plugins: [spinTheWheel]});
nudge_core_browser
would now trigger Spin the wheel defined on your Dashboard using theNudgeSpinTheWheelUi
plugin.