yireo-training / magento2-example-js-component1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ExampleJsComponent1 module for Magento 2

This repository contains a Magento 2 module that illustrates the usage of RequireJS and a simple JS component, that demonstrates how JS components can load their configuration.

Installation

To install use the following composer command:

composer require yireo-training/magento2-example-js-component1:dev-master

Next enable the module:

bin/magento module:enable Yireo_ExampleJsComponent1
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 box that is updated via the JS component, displaying the text from the Block class.

About

License:Open Software License 3.0


Languages

Language:HTML 48.8%Language:PHP 31.2%Language:JavaScript 20.1%