Skip to content

Commit 9d2661c

Browse files
feat($uiRouter): expose router instance at config-time as $uiRouterProvider.router
1 parent 8e91dc9 commit 9d2661c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng1/services.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ $uiRouter.$inject = ['$locationProvider'];
160160
function $uiRouter($locationProvider: ILocationProvider) {
161161

162162
// Create a new instance of the Router when the $uiRouterProvider is initialized
163-
router = new UIRouter();
163+
router = this.router = new UIRouter();
164164
router.stateProvider = new StateProvider(router.stateRegistry, router.stateService);
165165

166166
// Apply ng1 specific StateBuilder code for `views`, `resolve`, and `onExit/Retain/Enter` properties

0 commit comments

Comments
 (0)