Skip to content

Commit

Permalink
feat: type query params
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed May 11, 2020
1 parent 37b24f7 commit e3ce5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/router/src/lib/router.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class Router {
private _url$ = new BehaviorSubject<string>(this.getLocation());
url$ = this._url$.pipe(distinctUntilChanged());

private _queryParams$ = new BehaviorSubject({});
private _queryParams$ = new BehaviorSubject<URLSearchParams>(new URLSearchParams(''));
queryParams$ = this._queryParams$.pipe(distinctUntilChanged());

private _hash$ = new BehaviorSubject('');
Expand Down

0 comments on commit e3ce5a5

Please sign in to comment.