{"id":22356889,"url":"https://github.com/ayamflow/angularinject","last_synced_at":"2025-07-30T10:32:47.959Z","repository":{"id":9456832,"uuid":"11337605","full_name":"ayamflow/AngularInject","owner":"ayamflow","description":"Convenient Sublime Text 2 Plugin to quickly inject a dependency into any AngularJS module","archived":false,"fork":false,"pushed_at":"2017-02-19T22:25:30.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-13T16:15:06.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/ayamflow.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":"2013-07-11T09:03:42.000Z","updated_at":"2013-12-19T16:30:41.000Z","dependencies_parsed_at":"2022-07-21T11:59:07.395Z","dependency_job_id":null,"html_url":"https://github.com/ayamflow/AngularInject","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/ayamflow%2FAngularInject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2FAngularInject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2FAngularInject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2FAngularInject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayamflow","download_url":"https://codeload.github.com/ayamflow/AngularInject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228124599,"owners_count":17873170,"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-12-04T14:12:19.087Z","updated_at":"2024-12-04T14:12:19.660Z","avatar_url":"https://github.com/ayamflow.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sublime Text 2 Plugin : AngularInject\n=============\n\nConvenient Sublime Text 2 Plugin to quickly inject a dependency into any AngularJS module\n\n##Installation\n### With Package Control:\nJust search for AngularInject package and confirm. Tada !\n### Manually:\nDownload and extract into your ST2 Packages folder. That's it.\nThis directory can be found on Mac OS at `~/Library/Application Support/Sublime Text 2/Packages/`\n\n##Usage\n\n####Note: this plugin only work (yet) with inline annotation. It doesn't work (yet) with static injection (example: `MyController.$inject = ['$scope', 'greeter'];`).\u003cbr /\u003e\u003cbr /\u003e\n\nBy default the plugin can be called with `Cmd + Alt + i` (Mac OS) and `Ctrl + Alt + i` (Windows \u0026 Linux).\nYou can also use the Command Palette to find `AngularJS: Inject Dependency` (any word should work).\n\nYou should see the quick panel (bottom of ST2 screen).\nJust type in the dependency you wish (for instance $window). Shazam !\n\nYour module should looks like this :\n\n`angular.module('myApp.controllers', []).controller('MyCtrl', [ '$http', function($http) { ... }`\n\nand to something like this after the plugin action (notice the $window injection)\n\n`angular.module('myApp.controllers', []).controller('MyCtrl', [ '$http', '$window', function($http, $window) { ... }`\n\nIf multiple modules exist on the same file, you will be ask to chose the one to inject.\n\n##Next Step\n###Know issues\nA lot ?\n###Todo\n1. Allow to remove an injection from the module\n2. Make the plugin work with no min-safe version (`MyCtrl.$inject[…]` or `controller('MyCtrl', function()…`)3. inject)\n3. Insure that the modified line is really the [ function() from the module\n\n##Contributing\nFeel free to modify, share, comment any bug or fork. Just [drop a tweet](http://twitter.com/ayamflow) if you do !","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayamflow%2Fangularinject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayamflow%2Fangularinject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayamflow%2Fangularinject/lists"}