{"id":17800892,"url":"https://github.com/refi64/vue-module","last_synced_at":"2026-02-10T15:12:37.431Z","repository":{"id":58232235,"uuid":"97335816","full_name":"refi64/vue-module","owner":"refi64","description":"Define Vue components using a web components-like syntax","archived":false,"fork":false,"pushed_at":"2017-07-27T21:59:42.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T21:46:59.836Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/refi64.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-15T18:49:56.000Z","updated_at":"2017-09-01T08:58:28.000Z","dependencies_parsed_at":"2022-08-31T03:30:14.648Z","dependency_job_id":null,"html_url":"https://github.com/refi64/vue-module","commit_stats":null,"previous_names":["kirbyfan64/vue-module"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/refi64/vue-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refi64%2Fvue-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refi64%2Fvue-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refi64%2Fvue-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refi64%2Fvue-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refi64","download_url":"https://codeload.github.com/refi64/vue-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refi64%2Fvue-module/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268629603,"owners_count":24281172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-27T12:32:27.197Z","updated_at":"2025-12-12T04:15:55.937Z","avatar_url":"https://github.com/refi64.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"vue-module\n==========\n\nDefine Vue components using a web components-like syntax. See the ``example``\nfor more info.\n\nYou'll likely need to first load ``webcomponents-lite.js``, which can be\nfound `here \u003chttps://github.com/webcomponents/webcomponentsjs\u003e`_.\n\nQuick demo\n**********\n\nIn *index.html*:\n\n.. code-block:: html\n\n  \u003chead\u003e\n    \u003cscript src=\"https://unpkg.com/vue\"\u003e\u003c/script\u003e\n    \u003c!-- Load vue-module.js --\u003e\n    \u003cscript src=\"../vue-module.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/webcomponentsjs/0.7.24/webcomponents-lite.min.js\"\u003e\u003c/script\u003e\n\n    \u003c!-- Register vue-module  --\u003e\n    \u003cscript\u003e Vue.use(VueModule); \u003c/script\u003e\n    \u003c!-- Load our example component --\u003e\n    \u003clink rel=\"import\" href=\"example-component.html\"\u003e\n  \u003c/head\u003e\n\n  \u003cbody\u003e\n    \u003cdiv id=\"example-app\"\u003e\n      \u003cexample-component\u003e\u003c/example-component\u003e\n    \u003c/div\u003e\n\n    \u003cscript\u003e\n      document.addEventListener('WebComponentsReady', function() {\n        new Vue({el: '#example-app'})\n      });\n    \u003c/script\u003e\n  \u003c/body\u003e\n\nIn *example-component.html*:\n\n.. code-block:: html\n\n  \u003cvue-module id=\"example-component\"\u003e\n    \u003c!-- Or: --\u003e\n    \u003c!-- \u003cdiv vue-module=\"example-component\"\u003e --\u003e\n    \u003ctemplate\u003e\n      \u003cp\u003e{{message}}\u003c/p\u003e\n    \u003c/template\u003e\n\n    \u003cscript\u003e\n      Vue.module('example-component', {\n        data: function() {\n          return { message: 'Hello!' };\n        },\n\n        // If you need to use v-once, then add:\n        once: true,\n      });\n    \u003c/script\u003e\n  \u003c/vue-module\u003e\n\nStyling\n*******\n\nWhen you use *vue-module*, your elements are automatically wrapped in a div with a class the\nsame name as your component. For example:\n\n.. code-block:: html\n\n  \u003cvue-module id=\"my-component\"\u003e\n    \u003c!-- Styling goes here! --\u003e\n    \u003cstyle\u003e\n    .my-component p { color: purple; }\n    \u003c/style\u003e\n\n    \u003ctemplate\u003e\n      \u003cp\u003eMy module!\u003c/p\u003e\n    \u003c/template\u003e\n\n    \u003cscript\u003e\n      Vue.module('my-component');\n    \u003c/script\u003e\n  \u003c/vue-module\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefi64%2Fvue-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefi64%2Fvue-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefi64%2Fvue-module/lists"}