{"id":18614791,"url":"https://github.com/andrewjbateman/angular-data-signals","last_synced_at":"2026-04-28T18:06:33.021Z","repository":{"id":96858226,"uuid":"596714436","full_name":"AndrewJBateman/angular-data-signals","owner":"AndrewJBateman","description":"Angular app to display API data using Angular signals and standalone components.","archived":false,"fork":false,"pushed_at":"2023-07-27T09:50:29.000Z","size":867,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-27T02:44:39.503Z","etag":null,"topics":["angular16","api-rest","grid-layout","signals","standalone-components","tailwindcss"],"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/AndrewJBateman.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}},"created_at":"2023-02-02T19:27:33.000Z","updated_at":"2023-07-26T15:45:40.000Z","dependencies_parsed_at":"2023-07-26T17:33:58.212Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-data-signals","commit_stats":null,"previous_names":["andrewjbateman/angular-data-signals"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-data-signals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-data-signals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-data-signals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-data-signals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-data-signals/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406449,"owners_count":19633024,"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":["angular16","api-rest","grid-layout","signals","standalone-components","tailwindcss"],"created_at":"2024-11-07T03:27:00.017Z","updated_at":"2025-11-03T03:30:27.933Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular Data Signals\n\n* Angular app to display API data using Angular signals and standalone components.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/angular-data-signals?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-data-signals?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-data-signals?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-data-signals?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Data Signals](#zap-angular-data-signals)\n  * [:page\\_facing\\_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal\\_strength: Technologies](#signal_strength-technologies)\n  * [:floppy\\_disk: Setup](#floppy_disk-setup)\n  * [:wrench: Testing](#wrench-testing)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status, Testing \\\u0026 To-Do List](#clipboard-status-testing--to-do-list)\n  * [:clap: Inspiration/General Tools](#clap-inspirationgeneral-tools)\n  * [:file\\_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Tailwind-styled card grid used to display data from a country information API.\n* Clicking on a card displays a single large card with country flag and more details such as currencies (displayed using Angular keyvalue pipe) etc.\n* Objective was to use the latest Angular Signals and standalone components.\n\n## :camera: Screenshots\n\n![Frontend screenshot](./imgs/grid.png)\n![Frontend screenshot](./imgs/detail.png)\n\n## :signal_strength: Technologies\n\n* [Angular framework v16](https://angular.io/)\n* [Tailwindcss v3](https://tailwindcss.com/) CSS framework\n* [SCSS/SASS](https://sass-lang.com/) CSS extension language\n* [REST Countries API v3.1](https://restcountries.com/) used for data - no API key required\n\n## :floppy_disk: Setup\n\n* Install dependencies using `npm i`\n* Run `ng serve` for a dev server. Frontend will open at `http://localhost:4200/` - refreshes on code changes\n* Run `npm run lint` to check files for correct typescript syntax. Currently no errors\n* Run `npm run lint:fix` to check ts and correct where possible (currently no errors to fix)\n* Run `npm run build` to generate a build file\n\n## :wrench: Testing\n\n* No testing files used this time. Just testing by running the app.\n\n## :computer: Code Examples\n\n* `pages/country-list.component.ts` function to filter country list by client search text and region choice - ternery expression used for region filtering first then filter to see if any country name includes client text\n\n```typescript\ncountriesFiltered = computed(() =\u003e {\n    const listToFilter =\n      this.regionSelected() === 'All'\n        ? this.countryListData()\n        : this.countryListData().filter(\n            (cntry: CountryDetailInterface) =\u003e\n              cntry.region === this.regionSelected()\n          );\n    return listToFilter.filter((cntry: CountryDetailInterface) =\u003e\n      cntry.name.common.toLowerCase().includes(this.searchText().toLowerCase())\n    );\n  });\n```\n\n## :cool: Features\n\n* Angular signals used for more efficient change detection\n* Standalone components used to reduce boiler plate by doing away with modules\n* Tailwind styling means small styles build bundle size (2.15 kb transfer size when I generated build), depending on compression, browser parsing etc.\n\n## :clipboard: Status, Testing \u0026 To-Do List\n\n* Status: Working\n* Testing: n/a\n* To-Do: Could add a Tailwind nav bar or change API data source.\n\n## :clap: Inspiration/General Tools\n\n* [Install Tailwind CSS with Angular](https://tailwindcss.com/docs/guides/angular)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `gomezbateman@gmail.com`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-data-signals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-data-signals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-data-signals/lists"}