UNPKG

angular-material-npfixed

Version:

The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M

28 lines (19 loc) 537 B
angular .module('material.components.chips') .controller('MdContactChipsCtrl', MdContactChipsCtrl); /** * Controller for the MdContactChips component * @constructor */ function MdContactChipsCtrl () { /** @type {Object} */ this.selectedItem = null; /** @type {string} */ this.searchText = ''; } MdContactChipsCtrl.prototype.queryContact = function(searchText) { return this.contactQuery({'$query': searchText}); }; MdContactChipsCtrl.prototype.itemName = function(item) { return item[this.contactName]; };