Answers for "use thymeleaf variable in javascript"

0

use thymeleaf variable in javascript

<script th:inline="javascript"> 	// Enable Thymeleaf inlining 
  	var email = [[${user.email}]]; 	// Behaves just like in HTML
</script>
Posted by: Guest on October-08-2020
0

how to create a variable in thymeleaf

You can use local variables. Declare an HTML element with a th:with attribute. For example <div th:with="someVariable=${someValue}"
Posted by: Guest on May-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language