Skip to content

Commit 0dd8605

Browse files
committed
Issue #angular#3078 Updating search.js
Searching for the anchor tag directive doesn't work when searching "a" but searching "q" returns $q as a result.
1 parent 186a68f commit 0dd8605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/app/src/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ angular.module('search', [])
88
}
99

1010
$scope.search = function(q) {
11-
var MIN_SEARCH_LENGTH = 3;
11+
var MIN_SEARCH_LENGTH = 1;
1212
if(q.length >= MIN_SEARCH_LENGTH) {
1313
var results = docsSearch(q);
1414
var totalAreas = 0;

0 commit comments

Comments
 (0)