Unfortunately, as far as I can see in the Angular Material code, this does not appear in the current md-chip implementation.
You can get around this by contacting the directory controller directly, but it is pretty dirty and will break easily with future versions of md-chip .
<md-chips ng-model="ctrl.roFruitNames" ng-click="ctrl.getSelectedChip($event)">
In the controller:
self.getSelectedChipIndex = function(event) { var selectedChip = angular.element(event.currentTarget).controller('mdChips').selectedChip; alert(selectedChip); }
See how it works:
http://codepen.io/anon/pen/oXopQq
In Angular, the problem arises when something like this is requested, so hopefully it will be added in the future:
https://github.com/angular/material/issues/3413
[change]
to extract chip data:
var ctrl = angular.element(event.currentTarget).controller('mdChips'); if(ctrl !== undefined){ var selectedChip = ctrl.items[ctrl.selectedChip]; }
source share