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

CanJS can.Control parent child interaction, accessing an element's controller instance

$
0
0
I have a parent can.Control instance named FooList bound to <div class="list">.  In that parent element's ejs template, I have this:

  1. <div class="child" <%= (el) -> new FooDetail(el, {}) %>>
How to I access the instance of can.Control bound to the FooList instance's .child?

I've got the observation direction from child to parent down, but cannot for the life of me determine how to get the can.Control instance bound to .child.  Using jQuery.

JMVC had:

  1. $(".special_controller").controller()
Also see "Calling Methods on Controllers" at the bottom here: docs

Viewing all articles
Browse latest Browse all 3491

Trending Articles