{"id":17255662,"url":"https://github.com/ffmathy/fluffyspoon.javascript.inversionofcontrol.vue","last_synced_at":"2025-07-25T22:12:40.272Z","repository":{"id":42231181,"uuid":"146004063","full_name":"ffMathy/FluffySpoon.JavaScript.InversionOfControl.Vue","owner":"ffMathy","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-18T06:44:33.000Z","size":166,"stargazers_count":3,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T06:35:19.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ffMathy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-24T14:48:22.000Z","updated_at":"2021-07-01T04:55:43.000Z","dependencies_parsed_at":"2023-02-18T08:30:59.889Z","dependency_job_id":null,"html_url":"https://github.com/ffMathy/FluffySpoon.JavaScript.InversionOfControl.Vue","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffMathy%2FFluffySpoon.JavaScript.InversionOfControl.Vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffMathy%2FFluffySpoon.JavaScript.InversionOfControl.Vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffMathy%2FFluffySpoon.JavaScript.InversionOfControl.Vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffMathy%2FFluffySpoon.JavaScript.InversionOfControl.Vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ffMathy","download_url":"https://codeload.github.com/ffMathy/FluffySpoon.JavaScript.InversionOfControl.Vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830419,"owners_count":21168272,"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-10-15T07:12:17.362Z","updated_at":"2025-04-14T05:42:03.071Z","avatar_url":"https://github.com/ffMathy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"`@fluffy-spoon/inverse-vue` is a Vue.js plugin that allows constructor dependency injection using the [`@fluffy-spoon/inverse`](https://www.npmjs.com/package/@fluffy-spoon/inverse-vue) framework.\n\n# Installing\n`npm i @fluffy-spoon/inverse-vue --save`\n\n# Example\n_To understand the following example, you have to be familiar with [`@fluffy-spoon/inverse`](https://www.npmjs.com/package/@fluffy-spoon/inverse-vue) first._\n\nIn the example below, we provide the plugin with the IOC container we want to use and define a component called `MyVueComponent` which injects a `Foo` as a dependency automatically. \n\n```typescript\nimport { Container, Inject, Injectable } from '@fluffy-spoon/inverse';\nimport { VueInverse, VueInjectable } from '@fluffy-spoon/inverse-vue';\n\nimport Component from 'vue-class-component';\nimport Vue from 'vue';\n\nvar container = new Container();\nVue.use(VueInverse, container);\n\n@Injectable\nclass Foo { }\n\n@Component({\n    template: '\u003cdiv\u003e\u003c/div\u003e'\n})\n@VueInjectable\nclass MyVueComponent extends Vue {\n    constructor(\n        @Inject private foo: Foo) \n    {\n        super();  \n\n        console.log('foo is injected - look:', foo);\n    }\n}\n```\n\nNow if you provide `MyVueComponent` to Vue.js anywhere, it will always have its constructor parameters injected in.\n\n# Special notes\n`@fluffy-spoon/inverse-vue` does not support classes that extend from mixins.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffmathy%2Ffluffyspoon.javascript.inversionofcontrol.vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fffmathy%2Ffluffyspoon.javascript.inversionofcontrol.vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffmathy%2Ffluffyspoon.javascript.inversionofcontrol.vue/lists"}