{"id":27452128,"url":"https://github.com/leolanese/angular19-api-signal","last_synced_at":"2026-04-09T22:59:49.844Z","repository":{"id":285930088,"uuid":"959798770","full_name":"leolanese/Angular19-API-Signal","owner":"leolanese","description":"Angular (19+) API request using pure reactive signal approach with Separation of Concern (SoC)","archived":false,"fork":false,"pushed_at":"2025-04-07T10:12:34.000Z","size":1280,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T15:32:29.830Z","etag":null,"topics":["angular","signal","typescript"],"latest_commit_sha":null,"homepage":"","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/leolanese.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":"2025-04-03T11:22:00.000Z","updated_at":"2025-04-07T10:12:38.000Z","dependencies_parsed_at":"2025-04-03T12:40:36.010Z","dependency_job_id":null,"html_url":"https://github.com/leolanese/Angular19-API-Signal","commit_stats":null,"previous_names":["leolanese/angular19-api-signal"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular19-API-Signal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular19-API-Signal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular19-API-Signal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular19-API-Signal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leolanese","download_url":"https://codeload.github.com/leolanese/Angular19-API-Signal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249062697,"owners_count":21206751,"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","signal","typescript"],"created_at":"2025-04-15T11:40:11.261Z","updated_at":"2026-04-09T22:59:49.817Z","avatar_url":"https://github.com/leolanese.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular (19+) API request using pure reactive signal approach with Separation of Concern (SoC)\n\n![](.//public/httpResource.png)\n\n## Child -\u003e Parent + Child -\u003e Service\n\nWe can output to a service instead of a Parent component. This is useful for:\n- Communication between unrelated components\n- Centralising state management\n- Avoiding \"prop drilling\" through multiple component layers\n\n\n## SoC notes\nif user-card.compoennt access the service: it's no longer considered a pure presentational (dummy) component in the traditional separation of concerns pattern.  This isn't necessarily bad - Angular's dependency injection and signals make this pattern convenient, but it does change the component's classification.\n\n\u003e For strict separation of concerns, you would keep services in container components and use input/output bindings for child components, even with signals.\n\n## Traditional separation:\n- Presentational components: Only handle UI rendering, receive data via inputs, emit events via outputs\n- Container components: Connect to services, manage state, and pass data down to presentational components\n\n## Modern Angular 19+ approach\nThis is the modern, dependency injection-based approach that:\n- Uses the new inject() function instead of constructor injection\n- Follows Angular's best practices for platform detection\n- Works seamlessly with Angular's SSR capabilities\n\nIt's particularly useful when you need to:\n- Access browser-only APIs (like localStorage)\n- Perform server-specific operations\n- Debug SSR-related issues\n- Optimize code for different environments\n\n---\n\nThis project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.5.\n\n## Development server\n\nTo start a local development server, run:\n\n```bash\nng serve\n```\n\nOnce the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.\n\n## Code scaffolding\n\nAngular CLI includes powerful code scaffolding tools. To generate a new component, run:\n\n```bash\nng generate component component-name\n```\n\nFor a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:\n\n```bash\nng generate --help\n```\n\n## Building\n\nTo build the project run:\n\n```bash\nng build\n```\n\nThis will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.\n\n## Additional Resources\n\nFor more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.\n\n---\n\n### :100: \u003ci\u003eThanks!\u003c/i\u003e\n#### Now, don't be an stranger. Let's stay in touch!\n\n\u003ca href=\"https://github.com/leolanese\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003cimg src=\"https://scastiel.dev/api/image/leolanese?dark\u0026removeLink\" alt=\"leolanese’s GitHub image\" width=\"600\" height=\"314\" /\u003e\n\u003c/a\u003e\n\n##### :radio_button: Linkedin: \u003ca href=\"https://www.linkedin.com/in/leolanese/\" target=\"_blank\"\u003eLeoLanese\u003c/a\u003e\n##### :radio_button: Twitter: \u003ca href=\"https://twitter.com/LeoLanese\" target=\"_blank\"\u003e@LeoLanese\u003c/a\u003e\n##### :radio_button: DEV.to: \u003ca href=\"https://www.dev.to/leolanese\" target=\"_blank\"\u003eBlog\u003c/a\u003e\n##### :radio_button: Questions / Suggestion / Recommendation: developer@leolanese.com\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleolanese%2Fangular19-api-signal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleolanese%2Fangular19-api-signal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleolanese%2Fangular19-api-signal/lists"}