{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/9092","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/9092/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/9092/comments","events_url":"https://api.github.com/repos/angular/material/issues/9092/events","html_url":"https://github.com/angular/material/issues/9092","id":166766770,"number":9092,"title":"How to count on chips??","user":{"login":"Dwiga","id":17058540,"avatar_url":"https://avatars.githubusercontent.com/u/17058540?v=3","gravatar_id":"","url":"https://api.github.com/users/Dwiga","html_url":"https://github.com/Dwiga","followers_url":"https://api.github.com/users/Dwiga/followers","following_url":"https://api.github.com/users/Dwiga/following{/other_user}","gists_url":"https://api.github.com/users/Dwiga/gists{/gist_id}","starred_url":"https://api.github.com/users/Dwiga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dwiga/subscriptions","organizations_url":"https://api.github.com/users/Dwiga/orgs","repos_url":"https://api.github.com/users/Dwiga/repos","events_url":"https://api.github.com/users/Dwiga/events{/privacy}","received_events_url":"https://api.github.com/users/Dwiga/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-21T08:42:47Z","updated_at":"2016-07-21T11:41:11Z","closed_at":"2016-07-21T11:41:11Z","body":"how to make a count on it?\r\nfor example,\r\nBanana (1), Apple (1), Tomato (1)\r\n----------------------------------\r\nafter that, i write on it tomato again\r\nit'll become like this\r\nBanana (1), Apple (1), Tomato (2)\r\n----------------------------------\r\nthank for your help.\r\ndwi.ahmad@protonmail.com"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/234229850","html_url":"https://github.com/angular/material/issues/9092#issuecomment-234229850","issue_url":"https://api.github.com/repos/angular/material/issues/9092","id":234229850,"user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T11:41:11Z","updated_at":"2016-07-21T11:41:11Z","body":"Normally you should ask that question in the [Angular Material Forum](https://groups.google.com/forum/#!forum/ngmaterial).\r\n\r\n---\r\nYou can easily add a counter, by using the following markup:\r\n```html\r\n<md-chips ng-model=\"ctrl.fruitArray\">\r\n  <md-chip-template>\r\n    <strong>{{$chip}}</strong>\r\n    <em>({{  ctrl.fruitArray.indexOf($chip) + 1 }})</em>\r\n  </md-chip-template>\r\n</md-chips>\r\n```\r\n\r\nHere is a working demo:  http://codepen.io/DevVersion/pen/akYVPm"}}
{"actor":{"display_login":"DevVersion"}}