How to Iterate and Render Database Data in Phoenix LiveView: Revision history

Jump to: navigation, search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

12 October 2023

29 May 2023

6 April 2023

27 March 2023

  • curprev 10:4910:49, 27 March 2023Admin talk contribs 508 bytes +15 No edit summary
  • curprev 10:4210:42, 27 March 2023Admin talk contribs 493 bytes +493 Created page with " ==Example== This code references a PostgreSQL table named TestBeds. <source> use AppWeb, :live_view alias App.TestBeds defmodule AppWeb.PageLive do use AppWeb, :live_view alias App.TestBeds def mount(_params, _session, socket) do {:ok, assign(socket, testbeds: TestBeds.list_testbeds())} end def render(assigns) do ~H""" <%= for testbed <- assigns.testbeds do %> <div><%= testbed.name %></div> <% end %> """..."