Multifield value in SPA angular component | Community
Skip to main content
Level 2
April 16, 2021
Solved

Multifield value in SPA angular component

  • April 16, 2021
  • 1 reply
  • 886 views

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.
Best answer by Kiran_Vedantam

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
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
April 16, 2021

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.