Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit baa7af0

Browse files
committed
docs($location): add docs for the $location.search setter
1 parent f43c226 commit baa7af0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/service/location.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ LocationUrl.prototype = {
321321
*
322322
* Change search part when called with parameter and return `$location`.
323323
*
324-
* @param {string|object<string,string>=} search New search part - string or hash object
324+
* @param {string|object<string,string>=} search New search params - string or hash object
325+
* @param {string=} paramValue If `search` is a string, then `paramValue` will override only a
326+
* single search parameter. If the value is `null`, the parameter will be deleted.
327+
*
325328
* @return {string}
326329
*/
327330
search: function(search, paramValue) {

0 commit comments

Comments
 (0)