21: Hide Footer on Empty

Hide footer on empty todos.

  1. Add hiding code to main and footer by x-show directive.

<body>


    <section class="main" x-show="todos.length">
      <input id="toggle-all" class="toggle-all" type="checkbox" @change="toggleAllTodos">
      <label for="toggle-all">Mark all as complete</label>

    </section>
    <footer class="footer" x-show="todos.length">

    </footer>
  </section>
</body>
</html>