How to use ng-blur on md-autocomplete?

I want to use blur on md-autocomplete, but ng-blur and md-blur do not work.

$scope.unFocus = function () { alert('Hello!'); } 
 <md-autocomplete md-no-cache="false" md-selected-item="selectedItem" md-search-text-change="searchLocation(searchText)" md-search-text="searchText" md-items="item in searchResult" md-item-text="item.address" md-selected-item-change="changeLocation(item)" md-min-length="0" md-floating-label="Your Address" ng-blur="unFocus()"> <md-item-template> <span md-highlight-text="searchText" md-highlight-flags="^i">{{item.address}}</span> </md-item-template> <md-not-found> <i>Not Found {{searchText}}</i> </md-not-found> </md-autocomplete> 
+6
source share
1 answer

ngBlur and ngFocus will start working with the 1.1.1 version of Angular Material

+3
source

All Articles