{"id":19150453,"url":"https://github.com/vicompany/vue-mixin-data-attributes","last_synced_at":"2026-06-14T04:30:20.013Z","repository":{"id":151131450,"uuid":"82155826","full_name":"vicompany/vue-mixin-data-attributes","owner":"vicompany","description":"Reads `data-` attributes from the element and assigns them to the Vue instance/component.","archived":false,"fork":false,"pushed_at":"2017-02-16T10:16:31.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T18:15:25.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vicompany.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-16T08:09:13.000Z","updated_at":"2019-01-15T12:21:19.000Z","dependencies_parsed_at":"2024-03-08T22:46:12.582Z","dependency_job_id":null,"html_url":"https://github.com/vicompany/vue-mixin-data-attributes","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fvue-mixin-data-attributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fvue-mixin-data-attributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fvue-mixin-data-attributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fvue-mixin-data-attributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicompany","download_url":"https://codeload.github.com/vicompany/vue-mixin-data-attributes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236198,"owners_count":19769571,"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","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-11-09T08:12:04.468Z","updated_at":"2026-06-14T04:30:19.960Z","avatar_url":"https://github.com/vicompany.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-mixin-data-attributes\n\nReads `data-` attributes from the element and assigns them to the Vue instance/component.\n\nYou can use the mixin on components and as global mixin. See [mixin documentation](https://vuejs.org/v2/guide/mixins.html).\n\n```html\n\u003cmy-message data-message=\"This is OK\"\u003e\u003c/my-message\u003e\n```\n\n```js\nimport dataAttributes from 'vue-mixin-data-attributes';\n\nVue.component('my-message', {\n    mixins: [dataAttributes],\n\n    data: () =\u003e {\n        return {\n            message: 'Default message',\n        },\n    },\n\n    mounted() {\n        console.log(this.message); // Logs: This is OK\n    }\n});\n```\n\n## Installation\n\n`npm install vue-mixin-data-attributes`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicompany%2Fvue-mixin-data-attributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicompany%2Fvue-mixin-data-attributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicompany%2Fvue-mixin-data-attributes/lists"}