elixirphoenix-frameworkphoenix-live-view

Elixir/Phoenix LiveView documentation for conditional rendering attributes like :if


I can't find it for the life of me. Does Phoenix have documentation for these attributes used with templates? Sigh.

// where is documentation?
<div :if={length(@items) == 0}>
  0 result.
</div>

Solution

  • There are some information here: https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#sigil_H/2-heex-extension-special-attributes