fix(router): subscribe should return subscription

Closes #3491

Closes #3695
This commit is contained in:
Brian Ford
2015-08-18 11:30:32 -07:00
parent f2d3bdb801
commit 5c95b376b5
2 changed files with 9 additions and 3 deletions

View File

@ -242,8 +242,8 @@ export class Router {
/**
* Subscribe to URL updates from the router
*/
subscribe(onNext: (value: any) => void): void {
ObservableWrapper.subscribe(this._subject, onNext);
subscribe(onNext: (value: any) => void): Object {
return ObservableWrapper.subscribe(this._subject, onNext);
}