Sling Model not showing complete details -- Sling model to JS
Hi Team
I have a sling model which I am using in htl file but I few values are not getting printed.
<sly data-sly-use.helper="${'com.****.aem.****.helpers.SampleModel'}"/>
<p> address is ${helper.deliveryAddress.firstName} </p>
My deliverAddress() method is having some address details like firstName, line1, line2, street
I am able to print firstName and line1 but not line2 and street.
There is another sling model which is able to retrieve all firstName, line1, line2, street which I used that sling model in my htl file it is printing however printing in some other htl file.
Kindly help me if I am doing any mistake.
Also let me know how to take value from sling model to js so that I can see what deliveryAddress() is printing.
Thanks and Regards
Prashanthi