Skip to content

Commit 6241bca

Browse files
fix(params): Fix typed parameters by auto-flushing the param type queue
Closes #14
1 parent 34ea6ad commit 6241bca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/providers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ export function uiRouterFactory(locationStrategy: LocationStrategy, platformLoca
150150
let ng2InjectorResolvable = Resolvable.fromData(NATIVE_INJECTOR_TOKEN, injector);
151151
registry.root().resolvables.push(ng2InjectorResolvable);
152152

153+
// Auto-flush the parameter type queue
154+
router.urlMatcherFactory.$get();
153155

154156
// ----------------- Initialize router -------------
155157
setTimeout(() => {

0 commit comments

Comments
 (0)