Skip to content

Commit

Permalink
Updated my first vue component
Browse files Browse the repository at this point in the history
  • Loading branch information
psaini12ednet committed Sep 27, 2024
1 parent cb7b04a commit 2c513cc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sections/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<link rel="stylesheet" href="{{ 'component-mega-menu.css' | asset_url }}" media="print" onload="this.media='all'">
{%- endif -%}

<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script src="{{ 'my-component.js' | asset_url }}"></script>

<style>
header-drawer {
Expand Down Expand Up @@ -122,6 +124,20 @@

<h1>Hello Welcome</h1>


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

<script>
new Vue({
el: '#app',
components: {
'my-component': MyComponent
}
});
</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
if section.settings.menu != blank
Expand Down

0 comments on commit 2c513cc

Please sign in to comment.