Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use thymeleaf variable in javascript

<script th:inline="javascript"> 	// Enable Thymeleaf inlining 
  	var email = [[${user.email}]]; 	// Behaves just like in HTML
</script>
 
PREVIOUS NEXT
Tagged: #thymeleaf #variable #javascript
ADD COMMENT
Topic
Name
6+8 =