12345678910111213141516171819 |
- import ExportedComponent(from="./ExportedComponent.pupper")
- import TestTaggedComponent(from="./TestTaggedComponent.pupper")
- template
- div
- div
- em|The following content must be imported from TestTaggedComponent.pupper:
- TestTaggedComponent(number=1, boolean=true, string="hello world", object={ a: 1 })
- hr.my-5
- div
- ="Also mounted into a slot:"
- slot(name="slot")
- implementation
- when#mounted
- console.log("Rendering", ExportedComponent, "into named slot \"slot\"", this.$slots.slot);
- ExportedComponent.mount(this.$slots.slot);
|