Multifield value in SPA angular component | Community
Skip to main content
Level 2
Apr 16, 2021 11:48 AM UTC
Solved

Multifield value in SPA angular component

Hi,

I have created a multifield angular component. I want to fetch the multifield value from the dialog and display it on the page since this is an angular component I cannot use sightly. How can I fetch these values.

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Kiran_Vedantam
Kiran_VedantamAccepted solution
New Participant
Apr 16, 2021 1:11 PM UTC

Hi @rahulb31017943,

 

For SPA, while using front-end technologies like REACT or ANGULAR, we do not use HTML or sightly to render the content. Instead, we create a component using REACT or ANGULAR.

 

To read the values in the dialog, we use the sling model exporter. Check an example here. Even though the blog gives a REACT example, it is more or less the same for angular as well.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

1 reply

Kiran_Vedantam
Kiran_VedantamAccepted solution
New Participant
Apr 16, 2021 1:11 PM UTC

Hi @rahulb31017943,

 

For SPA, while using front-end technologies like REACT or ANGULAR, we do not use HTML or sightly to render the content. Instead, we create a component using REACT or ANGULAR.

 

To read the values in the dialog, we use the sling model exporter. Check an example here. Even though the blog gives a REACT example, it is more or less the same for angular as well.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

Translate