Skip to content

Commit a76654e

Browse files
author
Rafael Fernandez Serra
committed
ensure $q is available during init
1 parent a7e2753 commit a76654e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/angular-hybrid.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import {
1010
UIRouter,
1111
ViewConfig,
1212
ViewService,
13+
ServicesPlugin,
14+
servicesPlugin,
1315
} from '@uirouter/core';
1416

1517
import {
@@ -239,6 +241,7 @@ upgradeModule.run([
239241

240242
/** Add support for observable state and param changes */
241243
$uiRouter.plugin(UIRouterRx);
244+
$uiRouter.plugin<ServicesPlugin>(servicesPlugin);
242245

243246
// Expose a merged ng1/ng2 injector as a Resolvable (on the root state).
244247
// This mimics how ui-router-ng2 exposes the root ng2 Injector, but

0 commit comments

Comments
 (0)