Luis Gonzalez
unread,Feb 11, 2013, 2:40:51 AM2/11/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Agility.js
I have an agility object whose model has two properties: "link" and
"name".
I tried many ways to construct a working link right in the view's
format, but I couldn't find the way to do it by using data-
bind="link".
So I finally made it in the controller, on "create" as follows:
movie = $$({
model: {},
controller: {
'create': function() {
var link = this.model.get("link");
var name = this.model.get('name');
this.view.$().html("<li><a href='" + link + "'>" + name + "</
a></li>");
},
}
});
How would be the proper way of creating a proper link, using the
model's properties, right in the view?