Hello,
At the tutorial to build a todoApp, the items left is not showing on the screen and please implement those codes in the tutorial bellow the <span class="todo-count">:
lib/live_view_todo_web/live/page_live.html.heex
<%= Enum.count(Enum.filter(@items, fn i -> i.status != 1 end)) %>
<%= if Enum.count(Enum.filter(@items, fn i -> i.status != 1 end)) == 1 do %>
item
<% else %>
items
<% end %>
I think that's all, thank you so much for this amazing tutorial, I learnet a lot from it! 🚀
Hello, At the tutorial to build a todoApp, the items left is not showing on the screen and please implement those codes in the tutorial bellow the
<span class="todo-count">
:lib/live_view_todo_web/live/page_live.html.heex
I think that's all, thank you so much for this amazing tutorial, I learnet a lot from it! 🚀