yireo-training/magento2-example-js-component3
Composer 安装命令:
composer require yireo-training/magento2-example-js-component3
包简介
README 文档
README
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-component3:dev-master
Next enable the module:
bin/magento module:enable Yireo_ExampleJsComponent3
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.
Optionally switch between the PHTML templates by modifying the Block class $_template variable.
统计信息
- 总下载量: 96
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2017-05-28