In this exercise, you will take an app and add a Model View and a Collection View.
Go through these steps, and do as many as you can in the time we have:
VideoItemView
. It should take a video model argument and return a <li>
.
VideoCollectionView
. It should do the following:
<ul>
element<ul>
<ul>
from the constructordocument.ready
. After you create your collection, instantiate a new VideoCollectionView
that's constructed from an instance of the VideoCollection
. Append that collection view to the body
of the document.Make sure that you use your browser developer tools to make debugging easier while working on this. Check for errors, and use console.log() to figure out how far your code makes it, and what the values of your variables are along the way.