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

Re : How to call view helper after can.Model.List data inserted to DOM

$
0
0
Depends on what you are trying to achieve, but if you just want to manipulate the element {{test type}} is on, use the `el` reference instead of searching whole document with `$('.name')`. Example: add `$(el).css('color', 'red')` to color each element red. 

The length is 0 because the element has been created, but not yet appended to the document.

Anything more complicated, you might want to use can.Component, can.view.tag or can.view.attr.

Viewing all articles
Browse latest Browse all 3491

Trending Articles