yireo-training/magento2-example-js-component1

安装: 97

依赖项: 1

建议者: 0

安全性: 0

星级: 4

关注者: 2

分支: 0

开放问题: 0

语言:HTML

类型:magento2-module

0.0.1 2017-01-14 11:41 UTC

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 类的文本。