Creating a Modal LiveView LiveComponent
If you aren’t familiar with LiveView LiveComponents, you might want to read Introduction to Phoenix LiveView LiveComponents before proceeding with this article.
You can find the code for this article on GitHub.
[Feb. 5, 2020 - Article and code updated to LiveView v0.6.0]
[Dec. 17, 2019 - Article and code written for LiveView v0.4.1]
For our example, we will modify Chris McCord’s counter example from his LiveView Example Repo. This is a simple LiveView example with buttons to increment and decrement a counter and another one, called Boom, to crash the counter.
Continue reading →