I have the below javascript file example.js
(function () { var Example = { notValid: function (data, value, item) { return false; }, isValid: function (data, value, item) { return true; } }; if (typeof window !== 'undefined') {...
(function () { var Example = { notValid: function (data, value, item) { return false; }, isValid: function (data, value, item) { return true; } }; if (typeof window !== 'undefined') { window.DepositProducts = Example; window.maestro.shouldMountApiToWindow = true } else { module.exports = Example; } })();
and I import it into my custom component like below:
Register to ask a question and access to more content.
Join now
You can request access to:
Request access