Created
April 29, 2021 22:56
-
-
Save filiperdt/5e209ef81c21f24bd36907b4eaaea455 to your computer and use it in GitHub Desktop.
Print Thymeleaf variable in console.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script th:inline="javascript"> | |
/*<![CDATA[*/ | |
console.log(/*[[${myVariable.id}]]*/ 'default'); | |
/*]]>*/ | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment