test condition for model class
Hi,
I have a query, can we write a condition to check the methods in the model class before we call the model class using data-sly-use and call the methods.
here's a scenario:
Model Class,
HTML file
Hi,
I have a query, can we write a condition to check the methods in the model class before we call the model class using data-sly-use and call the methods.
here's a scenario:
Model Class,
HTML file
<section data-sly-use.model="com.bootcamp.core.models.HelloWorldModel" data-
message="${model.helloMessage}">
</section>
This is just fine, looks like you are using HTML attributes, which is consumed by the JS frontend code. you can detect whether data-message is null, blank or not, then perform the task as needed.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.