Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sd-id #24

Closed
yyx990803 opened this issue Oct 18, 2013 · 1 comment
Closed

sd-id #24

yyx990803 opened this issue Oct 18, 2013 · 1 comment
Assignees
Milestone

Comments

@yyx990803
Copy link
Member

use sd-id to be able to reference a child Seed from a parent Seed.

Example:

<div id="parent">
    <div sd-id="child" sd-viewmodel="abc"></div>
</div>
var parent = new Seed({ el: '#parent' })
// a node with `sd-viewmodel` and `sd-id` both present will
// have its corresponding VM instance registered under parent VM's "$" property
var child = parent.$.child
@ghost ghost assigned yyx990803 Oct 18, 2013
@yyx990803
Copy link
Member Author

5fa908d + 5fa908d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant