(router: UIRouter, handler: IInjectable)
| 32 | */ |
| 33 | export class UrlRouterProvider { |
| 34 | static injectableHandler(router: UIRouter, handler: IInjectable): UrlRuleHandlerFn { |
| 35 | return (match) => services.$injector.invoke(handler, null, { $match: match, $stateParams: router.globals.params }); |
| 36 | } |
| 37 | |
| 38 | /** @hidden */ |
| 39 | constructor(/** @hidden */ private router: UIRouter) {} |