How to pass backend variable values to presentation layer

asn_india

17-01-2019

Lot of projects these days are using JS frameworks like angular,react with AEM.

How does one pass variable values from sightly/HTL to JS layer?

Because including those values in DOM as data- attribute or as hidden element and retrieving with JS DOM traversal wouldn't be good choice if there are too many values to be passed?

It would be great if someone could point me to some example!!

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Answers (0)