Okay, the solution is we need to use inline data. This inline injection is very powerful when we need to put some variable on javascript. To use inline data is we just need to add two square bracket "[[]]" within the variable inside it. Example: [[${passedData}]]
How To Put Thymeleaf Variable Into Javascript?
Okay, the solution is we need to use inline data. This inline injection is very powerful when we need to put some variable on javascript. To use inline data is we just need to add two square bracket "[[]]" within the variable inside it. Example: [[${passedData}]]