A front-end developer working on an AEM SPA project cannot see the property that should be exposed in the JSON of the new component added to the homepage.
Which option would give information if the required property is exposed by the Sling Model?
In an AEM Single Page Application (SPA) project, the.model.jsonendpoint is used to expose the properties of a Sling Model as JSON. This is useful for SPAs that need to access component properties dynamically. The front-end developer should check the URL[homepage-path]/model.jsonto see the JSON output of the Sling Model for the new component. This endpoint provides a tree of the page content as JSON, which includes the Sling Model's exported properties for components included on the page.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit