{"id":18615080,"url":"https://github.com/andrewjbateman/angular-api-datatable","last_synced_at":"2026-04-13T20:02:49.646Z","repository":{"id":96857909,"uuid":"488695349","full_name":"AndrewJBateman/angular-api-datatable","owner":"AndrewJBateman","description":":clipboard: Angular app using an Angular DataTables library to display API data in a responsive paginated HTML table with search box","archived":false,"fork":false,"pushed_at":"2023-06-24T15:59:21.000Z","size":1958,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-27T02:45:26.077Z","etag":null,"topics":["angular","angular16","css3","datatables","html5","jquery","responsive-layout","rxjs"],"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-04T18:06:37.000Z","updated_at":"2023-06-24T15:59:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb64ff36-6ea2-4b4a-bd15-fb8b870d5d76","html_url":"https://github.com/AndrewJBateman/angular-api-datatable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-datatable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-datatable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-datatable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-api-datatable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-api-datatable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406495,"owners_count":19633025,"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","angular16","css3","datatables","html5","jquery","responsive-layout","rxjs"],"created_at":"2024-11-07T03:28:04.601Z","updated_at":"2025-11-03T03:30:34.714Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular API DataTable\n\n* Angular app using an Angular DataTables library to display API data in a responsive paginated HTML table with search box\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-api-datatable?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-api-datatable?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-api-datatable?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-api-datatable?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular API DataTable](#zap-angular-api-datatable)\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  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \\\u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file\\_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Angular DataTables library used for building complex HTML tables using DataTables\n* [REST Countries API v3](https://restcountries.com/#api-endpoints-v3-all) endpoint used for country JSON data\n* Not possible to use data Observable in HTML with `| async` because DataTables operates on JASON data so requires subscription to the data Observable.\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/table.png)\n\n## :signal_strength: Technologies\n\n* [Angular framework v16](https://angular.io/)\n* [Angular DataTables library v16](https://l-lin.github.io/angular-datatables/#/welcome)\n* [JQuery plug-in v3](https://www.npmjs.com/package/jquery)\n* [ColReorder for DataTables v1](https://www.npmjs.com/package/datatables.net-colreorder) for responsive columns\n\n## :floppy_disk: Setup\n\n* Run `npm i` to install dependencies.\n* Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n* Run `npm run build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## :computer: Code Examples\n\n* `app.component.ts` functions to fetch data via a separate service and destroy data table trigger\n\n```typescript\n  // get country list and subscribe, new table triggered with new data each RouterTestingModule\n  getCountryList = (url: string): void =\u003e {\n    this.countryService\n      .fetchCountryList(url)\n      .subscribe((data: CountryListInterface[]) =\u003e {\n        this.countries = data;\n        this.dtTrigger.next(data);\n      });\n  };\n\n  // Table data unsubscribed in OnDestroy lifecycle\n  ngOnDestroy(): void {\n    this.dtTrigger.unsubscribe();\n  }\n```\n\n## :cool: Features\n\n* All table formatting, responsiveness, sorting etc. is taken care of - saves a lot of time\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Nothing\n\n## :clap: Inspiration\n\n* [Angular DataTables documentation](http://l-lin.github.io/angular-datatables/#/welcome)\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@yahoo.com`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-api-datatable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-api-datatable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-api-datatable/lists"}