yireo-training / magento2-example-js-component1
0.0.1
2017-01-14 11:41 UTC
Requires
- php: >=5.6.0
- magento/framework: 100.*
Requires (Dev)
- composer/composer: *@dev
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2024-09-19 21:39:27 UTC
README
此仓库包含一个 Magento 2 模块,展示了如何使用 RequireJS 和一个简单的 JS 组件,该组件演示了 JS 组件如何加载其配置。
安装
要安装,请使用以下 composer 命令
composer require yireo-training/magento2-example-js-component1:dev-master
然后启用模块
bin/magento module:enable Yireo_ExampleJsComponent1
bin/magento setup:upgrade
并刷新缓存
bin/magento cache:clean
概念验证
安装模块后,主容器应该包含一个盒子,该盒子通过 JS 组件更新,显示来自 Block 类的文本。