index.js 787 B

1234567891011121314151617181920
  1. import Template from "./templates/template.pupper";
  2. import ImportedComponent from "./templates/ImportedComponent.pupper";
  3. import ExportedComponent from "./templates/ExportedComponent.pupper";
  4. (async function() {
  5. window.component = Template;
  6. await Template.mount(document.getElementById("app"));
  7. Template.puppies.push({
  8. id: 3,
  9. title: "Wow, a shibe!",
  10. description: "Cute shiberino!!!",
  11. thumbnail: "https://media.istockphoto.com/photos/happy-shiba-inu-dog-on-yellow-redhaired-japanese-dog-smile-portrait-picture-id1197121742?k=20&m=1197121742&s=170667a&w=0&h=SDkUmO-JcBKWXl7qK2GifsYzVH19D7e6DAjNpAGJP2M=",
  12. shibe: true
  13. });
  14. ExportedComponent.mount(Template.$slots.slot);
  15. ImportedComponent.mount(Template.$slots.slot2);
  16. }());