In a youtube tutorial I saw a different way of declaring a model:
model = Backbone.Model({
data:[
{text:"Google", href:"https://google.com"},
{text:"Facebook", href:"https://facebook.com"},
{text:"Youtube", href:"https://youtube.com"}
]
});
my console log is throwing error:
Uncaught TypeError: Object # has no method 'set'
Is this the right way to do it?