Skip to content

Commit a1855ab

Browse files
fix(ui-router-rx): Fix ui-router-rx plugin name
1 parent 45c7341 commit a1855ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ng2/rx.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Observable} from "rxjs/Observable";
33
import {ReplaySubject} from "rxjs/ReplaySubject";
44
import {Transition} from "ui-router-core";
55
import {UIRouter} from "ui-router-core";
6-
import {StateDeclaration} from "ui-router-core";
6+
import {StateDeclaration, UIRouterPlugin} from "ui-router-core";
77

88
export interface StatesChangedEvent {
99
currentStates: StateDeclaration[];
@@ -21,7 +21,8 @@ declare module 'ui-router-core/lib/globals' {
2121
}
2222

2323
/** Augments UIRouterGlobals with observables for transition starts, successful transitions, and state parameters */
24-
export class UIRouterRx {
24+
export class UIRouterRx implements UIRouterPlugin {
25+
name = 'ui-router-rx';
2526
private deregisterFns: Function[] = [];
2627

2728
constructor(router: UIRouter) {

0 commit comments

Comments
 (0)