{"id":19370757,"url":"https://github.com/playerx/angular-redux-dynamic-modules","last_synced_at":"2026-05-15T17:08:23.908Z","repository":{"id":74487779,"uuid":"106379982","full_name":"playerx/angular-redux-dynamic-modules","owner":"playerx","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-18T14:52:55.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T21:47:31.121Z","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/playerx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-10T06:57:52.000Z","updated_at":"2017-11-10T21:17:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe83f223-a07f-4ad9-ba52-f7f4f5566ae5","html_url":"https://github.com/playerx/angular-redux-dynamic-modules","commit_stats":{"total_commits":30,"total_committers":3,"mean_commits":10.0,"dds":0.1333333333333333,"last_synced_commit":"42c2c2f8f6867000a518e35715bfe15770a50a4f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fangular-redux-dynamic-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fangular-redux-dynamic-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fangular-redux-dynamic-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fangular-redux-dynamic-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/playerx","download_url":"https://codeload.github.com/playerx/angular-redux-dynamic-modules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240492637,"owners_count":19810135,"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-11-10T08:16:25.487Z","updated_at":"2026-05-15T17:08:18.887Z","avatar_url":"https://github.com/playerx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamic modules configuration for Angular Redux\n\nWorks with async modules too.\n\n## How to use:\n\nApp module:\n\n```ts\nimport { StoreModule } from 'angular-redux-dynamic-modules';\n\n@NgModule({\n\tdeclarations: [\n\t\tAppComponent\n\t],\n\timports: [\n\t\t...\n\t\tStoreModule,\n\t\t...\n\t\tUserModule,\n\t\tHRModule,\n\t],\n\tbootstrap: [AppComponent]\n})\nexport class AppModule { }\n\n```\n\n\n\nUser Module (for example):\n\n```ts\nimport { StoreConfigService } from 'angular-redux-dynamic-modules';\n\n\n@NgModule({\n\timports: [\n\t\tCommonModule,\n\t],\n\tproviders: [Actions, UserService, Epics],\n})\nexport class UserModule {\n\tconstructor(\n\t\tstoreConfig: StoreConfigService,\n\t\tepics: Epics\n\t) {\n\n\t\t// Register State\n\t\tstoreConfig.addModule(\n\t\t\t'User',\n\t\t\tInitialState,\n\t\t\treducer,\n\t\t\t[epics]\n\t\t);\n\n\t}\n\n}\n```\n\n\nDispatching Actions:\n\n```ts\nimport { Dispatcher } from 'angular-redux-dynamic-modules';\nimport * as user from '@modules/user';\nimport * as hr from '@modules/hr';\n\nexport class MainComponent implements OnInit {\n\n\tconstructor(\n\t\tprivate store: Dispatcher\u003chr.PublicAction | user.PublicAction\u003e\n\t) { }\n\t\n\tngOnInit() {\n\t\tthis.store.dispatch({\n\t\t\ttype: hr.ActionType.LoadList,\n\t\t\tfilterName: '',\n\t\t\tfilterSurname: ''\n\t\t});\n\t}\n\n}\n```\n\n\nAlso please check out: \n[Example App](https://github.com/playerx/angular-redux)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayerx%2Fangular-redux-dynamic-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplayerx%2Fangular-redux-dynamic-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayerx%2Fangular-redux-dynamic-modules/lists"}