Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

How do you associate a model instance from list with an element in an ejs template?

$
0
0
Tried list() and some old methods from JMVC.. 

In a can.Control instance, templated event listener:
  1. 'li click': function(el, ev) { trying to get el.model() here... }
No model() function.

Tried using list() in ejs, too.  Renders findAll list just fine, but still no way to get the model instance.  Is this no longer possible?  I see el.model() in the CanJS docs so I thought I'd ask.  Also tried

  1. <li <%= modelName, etc %>>

to no avail.


Viewing all articles
Browse latest Browse all 3491

Trending Articles