{"id":18279033,"url":"https://github.com/wagerfield/vue-static-data","last_synced_at":"2025-04-05T04:31:30.892Z","repository":{"id":34083639,"uuid":"169721503","full_name":"wagerfield/vue-static-data","owner":"wagerfield","description":"Add static data to Vue instances","archived":false,"fork":false,"pushed_at":"2023-01-04T03:01:10.000Z","size":561,"stargazers_count":7,"open_issues_count":17,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T22:22:57.077Z","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/wagerfield.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}},"created_at":"2019-02-08T10:56:25.000Z","updated_at":"2021-11-17T21:57:13.000Z","dependencies_parsed_at":"2023-01-15T04:32:35.989Z","dependency_job_id":null,"html_url":"https://github.com/wagerfield/vue-static-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wagerfield%2Fvue-static-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wagerfield%2Fvue-static-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wagerfield%2Fvue-static-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wagerfield%2Fvue-static-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wagerfield","download_url":"https://codeload.github.com/wagerfield/vue-static-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289382,"owners_count":20914463,"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-05T12:27:09.013Z","updated_at":"2025-04-05T04:31:25.855Z","avatar_url":"https://github.com/wagerfield.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Static Data\n\nAdd `staticData` to [Vue instances][vue-instances] and watch in awe as it does nothing.\n\n    yarn add vue-static-data\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cbutton @click=\"updateStatic\" v-text=\"staticProp\" /\u003e\n    \u003cbutton @click=\"updateReactive\" v-text=\"reactiveProp\" /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n  // Object | Function\n  staticData: () =\u003e ({\n    staticProp: \"static\"\n  }),\n  data: () =\u003e ({\n    reactiveProp: \"reactive\"\n  }),\n  methods: {\n    updateStatic() {\n      this.staticProp = \"static clicked\"\n    },\n    updateReactive() {\n      this.reactiveProp = \"reactive clicked\"\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n## Author\n\n[Matthew Wagerfield][github]\n\n## License\n\n[MIT][mit]\n\n[vue-instances]: https://vuejs.org/v2/guide/instance\n[mit]: https://opensource.org/licenses/MIT\n[github]: https://github.com/wagerfield\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwagerfield%2Fvue-static-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwagerfield%2Fvue-static-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwagerfield%2Fvue-static-data/lists"}