{"id":20295070,"url":"https://github.com/nfriend/angularjs-in-angular-bug-repro","last_synced_at":"2026-05-09T16:05:14.832Z","repository":{"id":147526990,"uuid":"127902594","full_name":"nfriend/angularjs-in-angular-bug-repro","owner":"nfriend","description":"Reproducing an issue with using an AngularJS component in an Angular app","archived":false,"fork":false,"pushed_at":"2018-04-03T13:26:59.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-15T23:05:04.475Z","etag":null,"topics":["angular","angularjs","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/nfriend.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":"2018-04-03T12:11:53.000Z","updated_at":"2018-04-03T13:27:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f9d03b8-58a9-4f96-8470-d50b6827a4ab","html_url":"https://github.com/nfriend/angularjs-in-angular-bug-repro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nfriend/angularjs-in-angular-bug-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fangularjs-in-angular-bug-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fangularjs-in-angular-bug-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fangularjs-in-angular-bug-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fangularjs-in-angular-bug-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfriend","download_url":"https://codeload.github.com/nfriend/angularjs-in-angular-bug-repro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fangularjs-in-angular-bug-repro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016285,"owners_count":26085828,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["angular","angularjs","typescript"],"created_at":"2024-11-14T15:32:59.022Z","updated_at":"2025-10-13T17:33:32.191Z","avatar_url":"https://github.com/nfriend.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angularjs-in-angular-bug-repro\nReproducing an issue with using an AngularJS component in an Angular app\n\n## Building and Running\n\nTo build and run this application:\n\n- Clone this repo\n  1. `git clone https://github.com/nfriend/angularjs-in-angular-bug-repro.git`\n- Build and link the AngularJS module\n  1. `cd angularjs-module`\n  2. `npm install`\n  3. `gulp build`\n  4. `npm link`\n- Link the module into the Angular app and build and run the app\n  1. `cd ../angular-app`\n  2. `npm install`\n  3. `npm link angularjs-module`\n  4. `ng serve --open`\n\nThe application should automatically open in a new browser tab.  The app will throw the following error in the console:\n\n```\nError: Trying to get the AngularJS injector before it being set.\n    at injectorFactory (static.js:694)\n    at _callFactory (core.js:10914)\n    at _createProviderInstance$1 (core.js:10868)\n    at resolveNgModuleDep (core.js:10850)\n    at NgModuleRef_.get (core.js:12087)\n    at Object.resolveDep (core.js:12577)\n    at Injector_.get (core.js:11734)\n    at new UpgradeHelper (static.js:809)\n    at ExampleDirective.UpgradeComponent (static.js:1114)\n    at new ExampleDirective (example.component.ts:10)\n```\n\n## GitHub issue\n\nhttps://github.com/angular/angular/issues/23141","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfriend%2Fangularjs-in-angular-bug-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfriend%2Fangularjs-in-angular-bug-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfriend%2Fangularjs-in-angular-bug-repro/lists"}