I need to create a website where a group of pages have a button on header, let’s suppose “authorize”. And on pressing that it should open a modal screen for entering some user auth data. I know how to create a modal “inside” of some live_view (how it was generated using phx.gen.live). But i cannot realize universal way of integrating this modal for a group of pages. I though about something like app.html.heex which work for every live_view, but didn’t succeed. I newbee in elixir/phoenix/web dev, so feel free to explain as for a child, if share some examples will be great
Hi Marat!
I searched around and found this thread which seems to have the solution you are looking for: How to use LiveComponents in Layouts, in the latest live view? - #4 by derpycoder
Good luck!
1 Like
Hello and thank you! Took a while to get the idea
1 Like