In magento 2 javascript , How i can wait till a component/node initialize then i can excute my code?
How to wait till components exists in registry . I want to wait till global component “messages” initialize then I can add error/success message. // view/frontend/templates/messages.phtml <script type=”text/x-magento-init”> { “*”: { “Magento_Ui/js/core/app”: { “components”: { “messages”: { “component”: “Magento_Theme/js/view/messages” }… Read More »In magento 2 javascript , How i can wait till a component/node initialize then i can excute my code?