title: Backbone: multiple View Models for the same model
body: <p>Newbie backbone question:</p>
  
  <p>Context: Building a shopping list with backbone</p>
  
  <p>I have a model class called with name, description and tags (array) properties.
  I would like to create two views based on this model or this model's collection.</p>
  
  <p>First view will display all items like this:</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;&lt;h3&gt;Item 1 Name&lt;/h3&gt;
  &lt;p&gt;Item 1 Description&lt;/p&gt;
  &lt;p&gt;Tag1, Tag2 ,Tag3&lt;/p&gt;
  &lt;/li&gt;
  .......
  &lt;/ul&gt;
  </code></pre>
  
  <p>Second view will display a list of tags and count of tagged items like this:</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;Tag1&lt;span&gt;{count of items tagged with tag1}&lt;/span&gt;&lt;/li&gt;
  &lt;li&gt;Tag2&lt;span&gt;{count of items tagged with tag2}&lt;/span&gt;&lt;/li&gt;
  &lt;li&gt;Tag3&lt;span&gt;{count of items tagged with tag3}&lt;/span&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I built the model, collection and view to support the first view. I would like to know the right way to use the existing model (or create a new model?) to build the second view.</p>
  
  <p>Thanks in advance...</p>
  
  <p>existing Item model and collection (ripped from Todo.js example)</p>
  
  <pre><code>window.Item = Backbone.Model.extend({
  // Default attributes for a todo item.
  defaults: function() {
  return {
  order: Items.nextOrder()
  };
  }
  });
  
  
  window.ItemList = Backbone.Collection.extend({
  
  model: Item,
  
  localStorage: new Store("items"),
  
  nextOrder: function() {
    if (!this.length) return 1;
    return this.last().get('order') + 1;
  },
  
  comparator: function(item) {
    return item.get('order');
  }
  
  });
  </code></pre>
  
  <p>UPDATE: Even though the overriding the parse() method works when displaying Tag names with item count, I was unable to refresh tag name/item count list after adding a new item. This may be due to the fact that the views are rendering from different collections. I will try extending the ItemList collection and overriding the parse() method. Any help is greatly appreciated.</p>