{"id":17419631,"url":"https://github.com/bendrucker/angular-annotation-decorator","last_synced_at":"2025-08-05T23:10:16.485Z","repository":{"id":30125438,"uuid":"33675402","full_name":"bendrucker/angular-annotation-decorator","owner":"bendrucker","description":"ES7 decorator for adding $inject annotations for Angular 1.x","archived":false,"fork":false,"pushed_at":"2018-11-13T20:22:13.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T00:03:39.076Z","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/bendrucker.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":"2015-04-09T15:01:27.000Z","updated_at":"2018-12-19T23:58:27.000Z","dependencies_parsed_at":"2022-08-03T15:20:26.337Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/angular-annotation-decorator","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/bendrucker%2Fangular-annotation-decorator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fangular-annotation-decorator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fangular-annotation-decorator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fangular-annotation-decorator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/angular-annotation-decorator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981261,"owners_count":21193146,"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-17T02:28:15.015Z","updated_at":"2025-04-15T00:04:28.318Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-annotation-decorator [![Build Status](https://travis-ci.org/bendrucker/angular-annotation-decorator.svg?branch=master)](https://travis-ci.org/bendrucker/angular-annotation-decorator)\n\nES7 decorator for adding `$inject` annotations for Angular 1.x.\n\n## Installing\n```sh\n$ npm install angular-annotation-decorator\n```\n\n## Usage\n\n```js\nimport inject from 'angular-annotation-decorator';\n\n@inject('$http', '$q')\nclass MyService {\n  constructor ($http, $q) {\n    //\n  }\n\n  @inject('$log')\n  method ($log) {\n    //\n  }\n}\n```\n\nYou'll need to use an ESNext transpiler like [Babel](https://babeljs.io/) and [enable support for decorators](https://www.npmjs.com/package/babel-plugin-transform-decorators-legacy).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fangular-annotation-decorator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fangular-annotation-decorator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fangular-annotation-decorator/lists"}