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

Clarify PHTML template component key #8106

Closed
Eddcapone opened this issue Oct 22, 2020 · 4 comments
Closed

Clarify PHTML template component key #8106

Eddcapone opened this issue Oct 22, 2020 · 4 comments
Assignees

Comments

@Eddcapone
Copy link

Eddcapone commented Oct 22, 2020

General issue

Description:

https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/javascript/js_init.html

In chapter Insert a JS component in a PHTML template -> Declarative notation -> Declarative notation using the data-mage-init attribute It says:

If an object is returned, the initializer tries to find the <component_name> key

But there is no information about where it even tries to lookup the key. How can I create the key so it can be found? Basic informations are missing and the topic remains complelty unclear.

@m2-assistant
Copy link

m2-assistant bot commented Oct 22, 2020

Hi @Eddcapone. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


@dobooth dobooth changed the title Feedback on page: /guides/v2.4/javascript-dev-guide/javascript/js_init.html Clarify PHTML template component key Oct 22, 2020
@DenisSaltanahmedov
Copy link
Contributor

@magento I am working on this

DenisSaltanahmedov added a commit to DenisSaltanahmedov/devdocs that referenced this issue Feb 2, 2021
Adding more information about component key in the Declarative notation section.
DenisSaltanahmedov added a commit to DenisSaltanahmedov/devdocs that referenced this issue Feb 2, 2021
DenisSaltanahmedov added a commit to DenisSaltanahmedov/devdocs that referenced this issue Feb 3, 2021
dobooth added a commit that referenced this issue Feb 3, 2021
@DenisSaltanahmedov
Copy link
Contributor

Hi @dobooth the PR is merged, can you clouse the issue?

@dobooth
Copy link
Contributor

dobooth commented Feb 23, 2021

Happily! Thanks for the effort.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants