Here(Controller) I add an attibute to my model
@RequestMapping("/archivosProcesados")
public String archivosProcesados(final ModelMap model) {
model.addAttribute("allfiles", filestorageService.getAllFiles());
return "archivosprocesados";
}
and in my view I access to them via Thymeleaf like this
<tr th:each="ap: ${archivos}">
<td th:text="${ap.clave_documento}"></td>
<td th:text="${ap.tipo_documento}"></td>
<td th:text="${ap.nombre_documento}"></td>
<td th:text="${ap.fecha_procesamiento}"></td>
</tr>
so I want to access to same values in my javaScript code, but how to do it? Thanks