Skip to content

yireo-training/magento2-example-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExampleModal module for Magento 2

This repository contains a Magento 2 module that illustrates the usage of RequireJS and a simple JS component, that makes use of the Magento 2 modal widget.

Installation

To install use the following composer command:

composer require yireo-training/magento2-example-modal:dev-master

Next enable the module:

bin/magento module:enable Yireo_ExampleModal
bin/magento setup:upgrade

And flush the cache:

bin/magento cache:clean

Proof of concept

After installing the module, the main container should contain a button that pops up the modal.