Expand my Community achievements bar.

SOLVED

Multifield value in SPA angular component

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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.