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

Re : Passing a callback to a component - possible?

$
0
0
@alex to answer your question:

- Passing an object may be fine sometimes, but many other times you have nothing to pass, you just want to get a result back
- Using can-event that way seems wrong to me, you are calling a function directly in the parent scope i.e. onSelected, this kind of tight coupling should be avoided



Viewing all articles
Browse latest Browse all 3491

Trending Articles