Skip to content

Commit

Permalink
fix(route.service): fix return type queryParams
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed May 31, 2017
1 parent 10c2694 commit e0352c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/core/route/route.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Injectable, Inject, InjectionToken, Optional } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { ActivatedRoute, Params } from '@angular/router';
import { Observable } from 'rxjs/Observable';

import { RouteServiceOptions } from '.';

Expand Down Expand Up @@ -31,7 +32,7 @@ export class RouteService {
this.options = Object.assign({}, defaultOptions, options);
}

get queryParams() {
get queryParams(): Observable<Params> {
return this.route.queryParams;
}

Expand Down

0 comments on commit e0352c9

Please sign in to comment.