We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a component has no view or an empty view defined, it’ll render its content as its view.
Here’s an abbreviated example from the forums: https://forums.donejs.com/t/how-to-limit-event-outcome-to-element-of-origin/919/8
Component.extend({ tag: "can-el", ViewModel: { hovMessage: { default: "I'm from can-el", } } }); Component.extend({ tag: "can-simple", view: "<can-el>{{hovMessage}}</can-el>", ViewModel: { hovMessage: { default: "I'm from can-simple", } } });
<can-simple></can-simple> will then render:
<can-simple></can-simple>
<can-simple> <can-el> I'm from can-el </can-el> </can-simple>
@phillipskevin says this is a feature, so I think this should be documented in the view docs and maybe also mentioned on the main can-component page.
The text was updated successfully, but these errors were encountered:
add extra "content" documentation to can-component to address #270
dae3d9f
justinbmeyer
No branches or pull requests
When a component has no view or an empty view defined, it’ll render its content as its view.
Here’s an abbreviated example from the forums: https://forums.donejs.com/t/how-to-limit-event-outcome-to-element-of-origin/919/8
<can-simple></can-simple>
will then render:@phillipskevin says this is a feature, so I think this should be documented in the view docs and maybe also mentioned on the main can-component page.
The text was updated successfully, but these errors were encountered: