Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 9bd6b07

Browse files
#8106 implementing review recommendations
1 parent 13ae2d7 commit 9bd6b07

File tree

1 file changed

+3
-3
lines changed
  • src/guides/v2.3/javascript-dev-guide/javascript

1 file changed

+3
-3
lines changed

src/guides/v2.3/javascript-dev-guide/javascript/js_init.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,19 @@ On DOM ready, the `data-mage-init` attribute is parsed to extract component name
111111
};
112112
```
113113

114-
Where `<component_name>` native Magento JS component, for example: `menu`, `collapsible`, `tooltip` ...
114+
Where `<component_name>` is a native Magento JS component, for example: `menu`, `collapsible`, `tooltip` ...
115115

116116
```html
117117
<nav data-mage-init='{"tooltip": {"content": "<?= /* @noEscape */ $content ?>"}}'></nav>
118118
```
119119

120-
Or a custom JS component, can be component path `Vendor_Module/js/component` or alias declareted in `requirejs-config.js`.
120+
Or a custom JS component, implemented with a component path: `Vendor_Module/js/component`, or as an alias declared in `requirejs-config.js`.
121121

122122
```html
123123
<nav data-mage-init='{"Vendor_Module/js/component": {"status":"<?= /* @noEscape */ $block->getStatus(); ?>"}}'></nav>
124124
```
125125

126-
More about [locate JS components](https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/javascript/js_debug.html).
126+
Read more about [locate JS components](https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/javascript/js_debug.html).
127127

128128
- If a function is returned, the initializer passes the <code>config</code> and <code>element</code> values to this function. For example:
129129

0 commit comments

Comments
 (0)