Pop-ups
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 NudgePopupsUi
module from nudge_core_browser
import { NudgePopupsUi } from 'nudge_core_browser';
Initialize the NudgePopupsUi
class
var popUps = new NudgePopupsUi();
- Just add the above-defined variable to the list in the
plugins
property ofNudgeProvider
new NudgeProvider({nudgeInstance: nudge, plugins: [popUps]});
nudge_core_browser
would now trigger Pop-ups defined on your Dashboard using theNudgePopupsUi
plugin.