Angular-With-Web-Api-MVC/packages/Angular.Material.1.0.6/content/Scripts/angular-material/angular-material.js
/**
 * Controller for the MdChips component. Responsible for adding to and
 * removing from the list of chips, marking chips as selected, and binding to
 * the models of various input components.
 *
 * @param $scope
 * @param $mdConstant
 * @param $log
 * @param $element
 * @constructor
 */
Controller for the MdChips component. Responsible for adding to and
removing from the list of chips, marking chips as selected, and binding to
the models of various input components.


Controller for the MdChips component . Responsible for adding to and removing from the list of chips marking chips as selected and binding to the models of various input components .
function MdChipsCtrl ($scope, $mdConstant, $log, $element, $timeout) {
  this.$timeout = $timeout;
  this.$mdConstant = $mdConstant;
  this.$scope = $scope;
  this.parent = $scope.$parent;
  this.$log = $log;
  this.$element = $element;
  this.ngModelCtrl = null;
  this.userInputNgModelCtrl = null;
  this.userInputElement = null;
  this.items = [];
  this.selectedChip = -1;
  this.hasAutocomplete = false;
  this.deleteHint = 'Press delete to remove this chip.';
  this.deleteButtonLabel = 'Remove';
  this.chipBuffer = '';
  this.useOnAppend = false;
  this.useTransformChip = false;
  this.useOnAdd = false;
  this.useOnRemove = false;
  this.useOnSelect = false;
}
function MdChipsCtrl ( $scope , $mdConstant , $log , $element , $timeout ) { this . $timeout = $timeout ; this . $mdConstant = $mdConstant ; this . $scope = $scope ; this . parent = $scope . $parent ; this . $log = $log ; this . $element = $element ; this . ngModelCtrl = null ; this . userInputNgModelCtrl = null ; this . userInputElement = null ; this . items = [ ] ; this . selectedChip = - 1 ; this . hasAutocomplete = false ; this . deleteHint = 'Press delete to remove this chip.' ; this . deleteButtonLabel = 'Remove' ; this . chipBuffer = '' ; this . useOnAppend = false ; this . useTransformChip = false ; this . useOnAdd = false ; this . useOnRemove = false ; this . useOnSelect = false ; }
Controller for the MdChips component.
Controller for the MdChips component .
/** @type {$timeout} **/ /** @type {Object} */ /** @type {angular.$scope} */ /** @type {angular.$scope} */ /** @type {$log} */ /** @type {$element} */ /** @type {angular.NgModelController} */ /** @type {angular.NgModelController} */ /** @type {Element} */ /** @type {Array.<Object>} */ /** @type {number} */ /** @type {boolean} */ /**
   * Hidden hint text for how to delete a chip. Used to give context to screen readers.
   * @type {string}
   */ /**
   * Hidden label for the delete button. Used to give context to screen readers.
   * @type {string}
   */ /**
   * Model used by the input element.
   * @type {string}
   */ /**
   * Whether to use the onAppend expression to transform the chip buffer
   * before appending it to the list.
   * @type {boolean}
   *
   *
   * @deprecated Will remove in 1.0.
   */ /**
   * Whether to use the transformChip expression to transform the chip buffer
   * before appending it to the list.
   * @type {boolean}
   */ /**
   * Whether to use the onAdd expression to notify of chip additions.
   * @type {boolean}
   */ /**
   * Whether to use the onRemove expression to notify of chip removals.
   * @type {boolean}
   */ /**
   * Whether to use the onSelect expression to notify the component's user
   * after selecting a chip from the list.
   * @type {boolean}
   */