Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
psaini12ednet committed Sep 27, 2024
1 parent 04d77a6 commit bfaf62b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 2 additions & 6 deletions assets/my-component.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
Vue.component('my-component', {
template: '<div>{{ message }}</div>',
data() {
return {
message: 'Hello from My Component!',
};
},
template: '<div>Hello from My Component!</div>',
// Add your component's data, methods, etc. here
});
11 changes: 11 additions & 0 deletions sections/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,18 @@

<h1>Hello Welcome</h1>


<div id="app">
<my-component></my-component>
</div>

<script>
document.addEventListener('DOMContentLoaded', function () {
new Vue({
el: '#app'
});
});
</script>

<header class="header header--{{ section.settings.logo_position }} header--mobile-{{ section.settings.mobile_logo_position }} page-width{% if section.settings.menu_type_desktop == 'drawer' %} drawer-menu{% endif %}{% if section.settings.menu != blank %} header--has-menu{% endif %}{% if has_app_block %} header--has-app{% endif %}{% if social_links %} header--has-social{% endif %}{% if shop.customer_accounts_enabled %} header--has-account{% endif %}{% if localization_forms %} header--has-localizations{% endif %}">
{%- liquid
Expand Down

0 comments on commit bfaf62b

Please sign in to comment.