{"id":21694121,"url":"https://github.com/fvilers/ngx-ordered-initializer","last_synced_at":"2025-04-12T10:50:34.577Z","repository":{"id":66280944,"uuid":"322248183","full_name":"fvilers/ngx-ordered-initializer","owner":"fvilers","description":"An Angular DI token that you can use to provide one or more initialization functions that will be executed in order","archived":false,"fork":false,"pushed_at":"2023-07-11T15:21:56.000Z","size":20,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T20:06:55.280Z","etag":null,"topics":["angular","dependency-injection","initializer"],"latest_commit_sha":null,"homepage":"","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/fvilers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"fvilers"}},"created_at":"2020-12-17T09:42:29.000Z","updated_at":"2022-08-19T20:38:32.000Z","dependencies_parsed_at":"2024-06-21T15:02:57.125Z","dependency_job_id":null,"html_url":"https://github.com/fvilers/ngx-ordered-initializer","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.04761904761904767,"last_synced_commit":"6348ff3a5bc0f8ce08079967ee2c1cf58f633747"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvilers%2Fngx-ordered-initializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvilers%2Fngx-ordered-initializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvilers%2Fngx-ordered-initializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvilers%2Fngx-ordered-initializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fvilers","download_url":"https://codeload.github.com/fvilers/ngx-ordered-initializer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557844,"owners_count":21124165,"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":["angular","dependency-injection","initializer"],"created_at":"2024-11-25T18:26:37.652Z","updated_at":"2025-04-12T10:50:34.556Z","avatar_url":"https://github.com/fvilers.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fvilers"],"categories":[],"sub_categories":[],"readme":"# ngx-ordered-initializer\n\nAn Angular DI token that you can use to provide one or more initialization functions that will be executed in order\n\n## Installation\n\n```\nnpm install ngx-ordered-initializer\n```\n\n## Versions\n\n- Angular 11: 1.0.0\n- Angular 12: 2.0.0\n- Angular 14: 4.0.0\n- Angular 15: 5.0.0\n- Angular 16: 6.0.0\n\n## Usage\n\n```\nimport { APP_INITIALIZER, NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport {\n  ORDERED_APP_INITIALIZER,\n  ORDERED_APP_PROVIDER,\n} from 'ngx-ordered-initializer';\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [AppComponent],\n  imports: [BrowserModule, HttpClientModule],\n  providers: [\n    {\n      provide: ORDERED_APP_INITIALIZER,\n      useFactory: initializer1,\n      multi: true,\n    },\n    {\n      provide: ORDERED_APP_INITIALIZER,\n      useFactory: initializer2,\n      multi: true,\n    },\n    ORDERED_APP_PROVIDER,\n  ],\n  bootstrap: [AppComponent],\n})\nexport class AppModule {}\n```\n\nThe `ORDERED_APP_PROVIDER` will ensure that each initializer provided as `ORDERED_APP_INITIALIZER` will be executed in the declaration order.\n\n## Demo\n\nhttps://stackblitz.com/edit/ngx-ordered-initializer-demo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvilers%2Fngx-ordered-initializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffvilers%2Fngx-ordered-initializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvilers%2Fngx-ordered-initializer/lists"}