Snippets Collections
<turbo-stream action="replace" target="load" data-th-each="load : ${loadStream}">
    <template>
        <span id="load">[[${load.at}]]: [[${load.avg}]]</span>
    </template>
</turbo-stream>
    @GetMapping(produces = [MediaType.TEXT_EVENT_STREAM_VALUE])
    suspend fun load(model: Model): String {
        model.addAttribute("loadStream", dataDrivenEach(loadService.stream()))
        return "load.turbo-stream"
    }
star

Wed Jan 27 2021 05:14:06 GMT+0000 (UTC)

#kotlin,springframework
star

Fri Jan 22 2021 01:49:09 GMT+0000 (UTC)

#kotlin,springframework

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension