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

Re : Idea for more reusability

$
0
0
> make that more customizable 

make what more customizable?  what is "that"?


list component how I can handle the click event

The click event on what?  You should probably not be listening to the click event, instead listening to some state change (perhaps selected).  However, you can provide the list component user content and listen to clicks that way:

<list items="{items}">
  <li can-click="doSomething'>{{name</li>
</list>


I'm still not sure what you are saying.  

Here's an example of listening to a state change:



Viewing all articles
Browse latest Browse all 3491

Trending Articles