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

$location.search does not remove query args when pass in an object #6565

Closed
@wangshijun

Description

@wangshijun

When the following code is used to remove query args from location url, it worked as expected:

$location.search('sid', null);
$location.search('time', null);
$location.search('sign', null);

But, the following code does not work as expected:

$location.search({
    sid: null,
    time: null,
    asign: null
});

Please correct if this is the correct behavior of $location.search

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions