Skip to content

Commit

Permalink
fix(ui-router-rx): Fix ui-router-rx plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jan 14, 2017
1 parent 45c7341 commit a1855ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ng2/rx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Observable} from "rxjs/Observable";
import {ReplaySubject} from "rxjs/ReplaySubject";
import {Transition} from "ui-router-core";
import {UIRouter} from "ui-router-core";
import {StateDeclaration} from "ui-router-core";
import {StateDeclaration, UIRouterPlugin} from "ui-router-core";

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

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

constructor(router: UIRouter) {
Expand Down

0 comments on commit a1855ab

Please sign in to comment.