{"id":24910499,"url":"https://github.com/angular-material-extensions/input-counter","last_synced_at":"2026-03-15T17:04:21.569Z","repository":{"id":38514573,"uuid":"273253756","full_name":"angular-material-extensions/input-counter","owner":"angular-material-extensions","description":"Modern number input component built with angular and material design","archived":false,"fork":false,"pushed_at":"2023-02-12T06:07:44.000Z","size":4973,"stargazers_count":3,"open_issues_count":7,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-10T09:13:22.129Z","etag":null,"topics":["angular","counter","input","library","number"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angular-material-extensions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-18T14:02:05.000Z","updated_at":"2022-07-06T21:25:31.000Z","dependencies_parsed_at":"2023-02-18T17:01:19.684Z","dependency_job_id":null,"html_url":"https://github.com/angular-material-extensions/input-counter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Finput-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Finput-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Finput-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-material-extensions%2Finput-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angular-material-extensions","download_url":"https://codeload.github.com/angular-material-extensions/input-counter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236748986,"owners_count":19198618,"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","counter","input","library","number"],"created_at":"2025-02-02T03:36:47.564Z","updated_at":"2025-10-16T21:31:45.468Z","avatar_url":"https://github.com/angular-material-extensions.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"angular-material-extensions's logo\"\n   height=\"256px\" width=\"256px\" style=\"text-align: center;\" \n   src=\"https://raw.githubusercontent.com/angular-material-extensions/input-counter/HEAD/assets/angular-material-extensions-logo.svg\"\u003e\n\u003c/p\u003e\n\n# @angular-material-extensions/input-counter - Autocomplete input component for google-maps built with angular material design\n\n[![npm version](https://badge.fury.io/js/%40angular-material-extensions%2Finput-counter.svg)](https://badge.fury.io/js/%40angular-material-extensions%2Finput-counter)\n[![npm demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://angular-material-extensions.github.io/input-counter)\n[![Join the chat at https://gitter.im/angular-material-extensions/Lobby](https://badges.gitter.im/angular-material-extensions/Lobby.svg)](https://gitter.im/angular-material-extensions/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Coverage Status](https://coveralls.io/repos/github/angular-material-extensions/input-counter/badge.svg?branch=master)](https://coveralls.io/github/angular-material-extensions/input-counter?branch=master)\n[![Build Status](https://travis-ci.org/angular-material-extensions/input-counter.svg?branch=master)](https://travis-ci.org/angular-material-extensions/input-counter)\n[![CircleCI branch](https://img.shields.io/circleci/project/github/angular-material-extensions/input-counter/master.svg?label=circleci)](https://circleci.com/gh/angular-material-extensions/input-counter)\n[![Greenkeeper Badge](https://badges.greenkeeper.io/angular-material-extensions/input-counter.svg)](https://greenkeeper.io/)\n[![license](https://img.shields.io/github/license/angular-material-extensions/input-counter.svg?style=flat-square)](https://github.com/angular-material-extensions/input-counter/blob/master/LICENSE)\n[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/gdi2290/awesome-angular)\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/input-counter\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/input-counter/HEAD/assets/v1/ex1.gif\"\u003e\n\u003c/p\u003e\n\n\n## Built by and for developers :heart:\nDo you have any question or suggestion ? Please do not hesitate to contact us!\nAlternatively, provide a PR | open an appropriate issue [here](https://github.com/angular-material-extensions/google-maps-auto/issues)\n\nIf did you like this project, support [angular-material-extensions](https://github.com/angular-material-extensions) \nby starring :star: and sharing it :loudspeaker:\n\n## Table of Contents\n- [Demo](#demo)\n- [Dependencies](#dependencies)\n- [Peer Dependencies](#peerDependencies)\n- [Additional Requirements - material (Include a theme)](#additional-requirements-material-theme)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Documentation](#documentation)\n- [Development](#development)\n- [Other Angular Libraries](#other-angular-libraries)\n- [Support](#support)\n- [License](#license)\n\n\u003ca name=\"demo\"/\u003e\n\n## [Demo](https://angular-material-extensions.github.io/input-counter)\n\nView all the directives and components in action at [https://angular-material-extensions.github.io/input-counter](https://angular-material-extensions.github.io/input-counter)\n\n\u003ca name=\"dependencies\"/\u003e\n\n## Dependencies\n* [Angular](https://angular.io) (*requires* Angular\n\n\n\u003ca name=\"installation\"/\u003e\n\n##  [Installation](https://angular-material-extensions.github.io/input-counter/getting-started)\n\n## 1. Install via *npm*. \n\nNow install `@angular-material-extensions/input-counter` via:\n```shell\nnpm install --save @angular-material-extensions/input-counter\n```\n\n\u003ca name=\"peerDependencies\"/\u003e\n\n### Requirements (peer dependencies):\n\nfor the ui input component, please consider to install the following packages\n- [angular animations v14.x](https://www.npmjs.com/package/@angular/animations)\n- [angular forms v14.x](https://www.npmjs.com/package/@angular/forms)\n- [angular material v14.x](https://www.npmjs.com/package/@angular/material)\n- [angular cdk v14.x](https://www.npmjs.com/package/@angular/cdk)\n\n```bash\nnpm i @angular/cdk @angular/material @angular/animations @angular/forms \n```\n\n\u003ca name=\"additional-requirements-material-theme\"/\u003e\n\n### Additional requirements Theme (Material Design)\n- [angular material theme](https://material.angular.io/guide/getting-started#step-4-include-a-theme)\n\n----\n\n##### SystemJS\n\u003e**Note**:If you are using `SystemJS`, you should adjust your configuration to point to the UMD bundle.\nIn your systemjs config file, `map` needs to tell the System loader where to look for `@angular-material-extensions/input-counter`:\n```js\n{\n  '@angular-material-extensions/input-counter';: 'node_modules/@angular-material-extensions/input-counter/bundles/input-counter.umd.js',\n}\n```\n---\n\nOnce installed you need to import the main module:\n```js\nimport { MatInputCounterModule } from '@angular-material-extensions/input-counter';\n```\nThe only remaining part is to list the imported module in your application module. The exact method will be slightly\ndifferent for the root (top-level) module for which you should end up with the code similar to (notice ` MatInputCounterModule.forRoot()`):\n```js\nimport { MatInputCounterModule } from '@angular-material-extensions/input-counter';\n\n@NgModule({\n  declarations: [AppComponent, ...],\n  imports: [\n     MatInputCounterModule, ...],  \n  bootstrap: [AppComponent]\n})\nexport class AppModule {\n}\n```\n\nOther modules in your application can simply import ` MatInputCounterModule `:\n\n```js\nimport { MatInputCounterModule } from '@angular-material-extensions/input-counter';\n\n@NgModule({\n  declarations: [OtherComponent, ...],\n  imports: [\n     MatInputCounterModule, ...], \n})\nexport class OtherModule {\n}\n```\n\n\u003ca name=\"usage\"/\u003e\n\n## [Usage](https://angular-material-extensions.github.io/input-counter/getting-started)\n\n\n### `mat-input-counter` \n\n\n```html\n \u003cmat-input-counter [min]=\"1\"\n                    [max]=\"10\"\n                    [step]=\"0.5\"\n                    [label]=\"Your label\"\n                    placeholder=\"your place holder\"\u003e\n        \u003c/mat-input-counter\u003e\n```\n\n#### With Reactive forms\n\n```html\n      \u003cform [formGroup]=\"formGroup\"\u003e\n        \u003cmat-input-counter formControlName=\"inputCounter\"\n                           [min]=\"+options.min\"\n                           [max]=\"+options.max\"\n                           [step]=\"+options.step\"\n                           [label]=\"options.label\"\n                           [placeholder]=\"options.placeholder\"\u003e\n        \u003c/mat-input-counter\u003e\n      \u003c/form\u003e\n```\n\n```typescript\n\nformGroup: FormGroup;\n\n this.formGroup = new FormGroup({\n      inputCounter: new FormControl()\n    });\n```\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/input-counter\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/input-counter/HEAD/assets/v1/ex1.png\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"@angular-material-extensions/input-counter\" style=\"text-align: center;\"\n   src=\"https://raw.githubusercontent.com/angular-material-extensions/input-counter/HEAD/assets/v1/ex2.png\"\u003e\n\u003c/p\u003e\n\n\n\u003ca name=\"api\"/\u003e\n\n### API - for more info please visit the official documentation [Maps JavaScript API](https://developers.google.com/maps/documentation/javascript/places-autocomplete?hl=en)\n\n### `matGoogleMapsAutocomplete`\n| option | bind  |  type  |   default    | description  |\n|:-------------------|:--------:|:------:|:------------:|:-------------------------------------------------------------------------------------------------|    \n| value               | `Input()`   |  `number` ;      | - |  the value of the component (number)\n| min                 | `Input()`   |  `number` ;      | - |  The minimum value that the counter can have.\n| max                 | `Input()`   | `number`;        | - | The maximum value that the counter can have.  \n| step                | `Input()`   | `number`         | - | The values at which the thumb will snap.\n| label               | `Input()`   | `string`         | - |  Label of the form field \n| placeholder         | `Input()`   | `string`         | - |  Placeholder of the form field\n| change              | `Output()`  | `number`| - |  event when the input form value changed\n\n\n\n\n\u003ca name=\"documentation\"/\u003e\n\n## [Documentation](https://angular-material-extensions.github.io/input-counter/doc/index.html)\n\nPlease checkout the full documentation [here](https://angular-material-extensions.github.io//input-counter/doc/index.html) \n\n\n\n\u003ca name=\"development\"/\u003e\n\n## Development\n\n1. clone this [repo](https://github.com/angular-material-extensions/input-counter.git)\n2. Install the dependencies by running `npm i`\n3. go to lib directory under `projects/angular-material-extensions/input-counter`\n4. build the library `npm run build`\n\n\n\u003ca name=\"other-angular-libraries\"/\u003e\n\n## Other Angular Libraries\n- [ngx-auth-firebaseui](https://github.com/AnthonyNahas/ngx-auth-firebaseui)\n- [ngx-linkifyjs](https://github.com/AnthonyNahas/ngx-linkifyjs)\n- [@firebaseui/ng-bootstrap](https://github.com/firebaseui/ng-bootstrap)\n- [@angular-material-extensions/pages](https://github.com/angular-material-extensions/pages)\n- [@angular-material-extensions/link-preview](https://github.com/angular-material-extensions/link-preview)\n- [@angular-material-extensions/password-strength](https://github.com/angular-material-extensions/password-strength)\n- [@angular-material-extensions/google-maps-autocomplete](https://github.com/angular-material-extensions/google-maps-autocomplete)\n- [@angular-material-extensions/select-country](https://github.com/angular-material-extensions/select-country)\n- [@angular-material-extensions/fab-menu](https://github.com/angular-material-extensions/fab-menu)\n- [@angular-material-extensions/faq](https://github.com/angular-material-extensions/faq)\n- [@angular-material-extensions/contacts](https://github.com/angular-material-extensions/contacts)\n\n\u003ca name=\"support\"/\u003e\n\n## Support\n+ Drop an email to: [Anthony Nahas](mailto:anthony.na@hotmail.de)\n+ or open an appropriate [issue](https://github.com/angular-material-extensions/input-counter/issues)\n+ let us chat on [Gitter](https://gitter.im/angular-material-extensions/Lobby)\n \n Built by and for developers :heart: we will help you :punch:\n\n\n## License\n\nCopyright (c) 2020 [Anthony Nahas](https://github.com/AnthonyNahas). Licensed under the MIT License (MIT)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-material-extensions%2Finput-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangular-material-extensions%2Finput-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-material-extensions%2Finput-counter/lists"}