mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-06-18 12:14:04 +08:00
docs(search): fix search submit functionality
When the search input box was submitted (i.e. by pressing enter) the app was supposed to take you to the first item but this was not happening. It turns out the app was just reading the wrong property for the path to the item. Closes #3078
This commit is contained in:
@@ -35,7 +35,7 @@ angular.module('search', [])
|
||||
}
|
||||
}
|
||||
if(result) {
|
||||
$location.path(result.url);
|
||||
$location.path(result.path);
|
||||
$scope.hideResults();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user