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

Commit fc3afad

Browse files
meker12jeff-matthews
authored andcommitted
Fix broken link in UI Components Guide (#3293)
* Fix broken link in UI Components Guide * Grammar fix * Grammar fix
1 parent 7e0c437 commit fc3afad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guides/v2.1/ui_comp_guide/concepts/ui_comp_config_flow_concept.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ When the request for my_page comes, the server does the following:
4848

4949
Now it is the client's turn to process this JSON and generate the UI component's instances. The flow is following:
5050

51-
1. RequireJS requires `Magento_Ui/js/core/app` and passes [JSON configuration]({{ page.baseurl }}/javascript-dev-guide/javascript/js_init.html#declarative-notation-using-the-script-typetextx-magento-init--tag-decl_tag) as an parameter.
51+
1. RequireJS requires `Magento_Ui/js/core/app` and passes [JSON configuration]({{ page.baseurl }}/javascript-dev-guide/javascript/js_init.html#decl_tag) as a parameter.
5252
2. The `Magento_Ui/js/core/app` calls `layout.js `and passes the UI component’s configuration into the layout: `<Magento_Ui_module_dir>/view/base/web/js/core/renderer/layout.js`.
5353
3. `layout.js` creates instances of UI components. That means that each UI component’s configuration must have an explicitly declared `component` property in JSON. This property references the `.js` file. For example, our form has the component declared in JSON like this: `"my_form":{"component":"Magento_Ui/js/form/form"}`
5454
So the instance of this class is created, and properties from the JSON overwrites the properties from the UI component’s `defaults` property. Then resulting properties become the first-level properties of the newly created UI component's instance, and the original `defaults` property is deleted.

guides/v2.2/ui_comp_guide/concepts/ui_comp_config_flow_concept.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ When the request for my_page comes, the server does the following:
4848

4949
Now it is the client's turn to process this JSON and generate the UI component's instances. The flow is following:
5050

51-
1. RequireJS requires `Magento_Ui/js/core/app` and passes [JSON configuration]({{ page.baseurl }}/javascript-dev-guide/javascript/js_init.html#declarative-notation-using-the-script-typetextx-magento-init--tag-decl_tag) as an parameter.
51+
1. RequireJS requires `Magento_Ui/js/core/app` and passes [JSON configuration]({{ page.baseurl }}/javascript-dev-guide/javascript/js_init.html#decl_tag) as a parameter.
5252
2. The `Magento_Ui/js/core/app` calls `layout.js `and passes the UI component’s configuration into the layout: `<Magento_Ui_module_dir>/view/base/web/js/core/renderer/layout.js`.
5353
3. `layout.js` creates instances of UI components. That means that each UI component’s configuration must have an explicitly declared `component` property in JSON. This property references the `.js` file. For example, our form has the component declared in JSON like this: `"my_form":{"component":"Magento_Ui/js/form/form"}`
5454
So the instance of this class is created, and properties from the JSON overwrites the properties from the UI component’s `defaults` property. Then resulting properties become the first-level properties of the newly created UI component's instance, and the original `defaults` property is deleted.

0 commit comments

Comments
 (0)