{"id":17219186,"url":"https://github.com/mpromonet/ag-angular-grid-sample","last_synced_at":"2025-03-25T14:41:40.419Z","repository":{"id":149954575,"uuid":"89797358","full_name":"mpromonet/ag-angular-grid-sample","owner":"mpromonet","description":null,"archived":false,"fork":false,"pushed_at":"2017-04-29T19:10:09.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T13:25:48.284Z","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/mpromonet.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-04-29T16:20:46.000Z","updated_at":"2017-04-29T16:38:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ea689cc-26a3-4ed1-88a9-79504d684cb4","html_url":"https://github.com/mpromonet/ag-angular-grid-sample","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/mpromonet%2Fag-angular-grid-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpromonet%2Fag-angular-grid-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpromonet%2Fag-angular-grid-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpromonet%2Fag-angular-grid-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpromonet","download_url":"https://codeload.github.com/mpromonet/ag-angular-grid-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245484395,"owners_count":20623072,"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-10-15T03:49:22.038Z","updated_at":"2025-03-25T14:41:40.397Z","avatar_url":"https://github.com/mpromonet.png","language":"TypeScript","readme":"# AngularGridSample\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.0.\n\nThis is a try to simplify the sample from https://www.ag-grid.com/best-angular-2-data-grid/?framework=all#gsc.tab=0\n\n\n\tng new ag-angular-grid-sample --skip-tests\n\tcd ag-angular-grid-sample\n\tnpm i ag-grid --save\n\tnpm i ag-grid-angular --save\n\tng generate component my-grid-application\n\n* src/app/app.component.html\n\n      \u003capp-my-grid-application\u003e\u003c/app-my-grid-application\u003e\n\n* src/app/my-grid-application/my-grid-application.component.ts\n\n      import {Component} from \"@angular/core\";\n      import {GridOptions} from \"ag-grid\";\n\n      @Component({\n          selector: 'app-my-grid-application',\n          templateUrl: './my-grid-application.component.html'\n      })\n      export class MyGridApplicationComponent {\n          private gridOptions: GridOptions;\n\n          constructor() {\n              this.gridOptions = {};\n              this.gridOptions.columnDefs = [\n                  {\n                      headerName: \"ID\",\n                      field: \"id\",\n                      width: 100\n                  },\n                  {\n                      headerName: \"Value\",\n                      field: \"value\",\n                      width: 100\n                  },\n              ];\n              this.gridOptions.rowData = [\n                  {id: 5, value: 10},\n                  {id: 10, value: 15},\n                  {id: 15, value: 20}\n              ]\n          }\n      }\n\n* src/app/my-grid-application/my-grid-application.component.html\n\n      \u003cdiv style=\"width: 200px;\"\u003e\n          \u003cag-grid-angular #agGrid style=\"width: 100%; height: 200px;\" class=\"ag-fresh\"\n                       [gridOptions]=\"gridOptions\"\u003e\n          \u003c/ag-grid-angular\u003e\n      \u003c/div\u003e\n\n* src/app/app.module.ts\n\n      import {BrowserModule} from \"@angular/platform-browser\";\n      import {NgModule} from \"@angular/core\";\n      import {AgGridModule} from \"ag-grid-angular/main\";\n\n      import {AppComponent} from \"./app.component\";\n      import {MyGridApplicationComponent} from \"./my-grid-application/my-grid-application.component\";\n\n      @NgModule({\n          declarations: [\n              AppComponent,\n              MyGridApplicationComponent\n          ],\n          imports: [\n              BrowserModule,\n              AgGridModule.withComponents([])\n          ],\n          providers: [],\n          bootstrap: [AppComponent]\n      })\n      export class AppModule {}\n\n* style.css\n\n      @import \"../node_modules/ag-grid/dist/styles/ag-grid.css\";\n      @import \"../node_modules/ag-grid/dist/styles/theme-fresh.css\";\n\n## Development server\n\nRun `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\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.\n\n## Build\n\nRun `ng 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## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\nBefore running the tests make sure you are serving the app via `ng serve`.\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpromonet%2Fag-angular-grid-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpromonet%2Fag-angular-grid-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpromonet%2Fag-angular-grid-sample/lists"}