You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use Ouibounce with first parameter as false you have to do your logic in the callback function. Like for me, in Angularjs (1.x) I do something like this:
function link(scope, el, attrs, ctrl): void {
/**
* Passing "false" as first argument allows
* us to use the plugin without setting it on an element,
* and instead use the callback function to do our thing.
*/
$window.ouibounce(false, {
callback: () => {
ctrl.show = !ctrl.show;
scope.$apply();
}
});
}
Do you see "ouibounce fired!" in your console with your example?
Hi. I was following your guides. This doesn't work.
How to use this library without
ouibounce-modal
id?The text was updated successfully, but these errors were encountered: