I read this tutorial and I want to do something similar, but instead of using the attributes of my custom elements, I will like to access the content inside my custom element tags. I can not understand this. So instead of html it looks like this:
<modal>
<modal-header title="Edit Person"></modal-header>
<modal-body content="person-information"></modal-body>
<modal-footer buttons.bind="['Cancel']"></modal-footer>
</modal>
I want it to look like this:
<modal>
<modal-header>Edit Person</modal-header>
<modal-body>
<form>...</form>
</modal-body>
<modal-footer buttons.bind="['Cancel']"></modal-footer>
</modal>
Is it possible?
source
share