phoenix_meta_tags icon indicating copy to clipboard operation
phoenix_meta_tags copied to clipboard

How to use it in LiveView

Open cvkmohan opened this issue 3 years ago • 1 comments

Firstly, thanks for the useful library. I am keen to know,

def controller do
  quote do
    ...
    use PhoenixMetaTags.TagController # Add this
  end
end

where to put these lines in case of a LiveView rendered page?

cvkmohan avatar Jan 24 '22 04:01 cvkmohan

just assign the meta tags on the live view assigns like:

|> assign(:meta_tags, %{...})}

michelson avatar Jul 19 '22 18:07 michelson