Now that we've implemented the models, we can focus on the views. We'll start with the note list view, which should be defined in
/www/js/app/views/noteListView.js. We'll also define three HTML snippets in
Before we do any of that, we need one additional piece of code: the note view factory. Just like we need a note factory to create notes of a specific type, we also need a note view factory to create the various editing views for each type of note. This is defined in
www/js/app/factories/noteViewFactory.js, as follows:
define ( ["app/views/textNoteEditView", "app/factories/noteFactory"], function ( TextNoteEditView, ...