code: function configureWatchers() {
        // $attrs.$observe('disabled', function (value) { ctrl.isDisabled = $mdUtil.parseAttributeBoolean(value, false); });
        // $attrs.$observe('required', function (value) { ctrl.isRequired = $mdUtil.parseAttributeBoolean(value, false); });
        // $attrs.$observe('readonly', function (value) { ctrl.isReadonly = $mdUtil.parseAttributeBoolean(value, false); });
  
        $scope.$watch(angular.bind(self, function () {
          return self.searchText;
        }), handleSearchText);
        $scope.$watch(angular.bind(self, function () {
          return self.selectedItem;
        }), selectedItemChange);
  
        // angular.element($window).on('resize', debouncedOnResize);
        //
        // $scope.$on('$destroy', cleanup);
      }
docs: Sets up any watchers used by autocomplete