allenhwkim / angularjs-google-maps

The Simplest AngularJS Google Maps V3 Directive
http://ngmap.github.io
MIT License
1.52k stars 516 forks source link

Places autocomplete input min value #887

Closed martinbures97 closed 5 years ago

martinbures97 commented 5 years ago
martinbures97 commented 5 years ago

<input places-auto-complete ng-keydown="Test($event);" on-place-changed="PlaceChanged()"/>

$scope.Test = function (e) { if (e.target.value.length < 5) { e.target.value += e.key; e.preventDefault(); } }

solved!