I know i am doing something stupid but my backbone marionette app is giving me template errors that don\'t make sense. It appears to be rendering a single item before the fe
Modified the Model to have a default value of anything i want to template. Feels Klugy but it gives me an app that works.
MyApp.Tag = Backbone.Model.extend({
defaults :
{
TagName : 'None'
}
});
The problem is this line in your initializer
var tagCollection = new MyApp.TagCollection({
});
When you pass an empty object literal in to a Backbone.Collection constructor, Backbone creates an empty model in the collection. To fix this, just remove the object literal:
var tagCollection = new MyApp.TagCollection()
and it won't have the empty item in it anymore.
Try:
tagCollection.fetch({ wait: true });