Can you solve your problem without DOM manipulation? In my components I
use DOM manipulation only as a last resort, try to use viewModel and
templates/helpers to do everything. Some examples in https://github.com/bitovi-components/
I wouldn't necessarily say that I need to use DOM manipulation.
Here's what I'd like to be able to do. Wrap some DOM, let's
say a list of div tags, with a custom tag such as <team-list> divs </team-list>
The divs on the inside would each represent a player. Yes, I know,
then instead of using a "div" for each player I should have
another custom element such as <player-info>, but for the sake
of this experiment I want to see how I'd accomplish this using
CanJS without the second custom tag. I'd like my
"team-list" can.Component to be able to grab each div and
"do something" with them.
I thought I could access the inner DOM of the custom tag within the init method, however that doesn't seem possible. There doesn't seem to be any DOM to access during init. Does it get pulled out and added back in at the end of setup?