|
1 |
| -/** @ng2api @module core */ /** */ |
2 |
| -import {Ng2StateDeclaration} from "./interface"; |
3 |
| -import {NgModule, OpaqueToken, ModuleWithProviders, ANALYZE_FOR_ENTRY_COMPONENTS, Provider, Type} from "@angular/core"; |
4 |
| -import {CommonModule} from "@angular/common"; |
5 |
| -import {_UIROUTER_DIRECTIVES} from "./directives/directives"; |
6 |
| -import {UIView} from "./directives/uiView"; |
7 |
| -import {RawParams} from "ui-router-core"; |
8 |
| -import {identity} from "ui-router-core"; |
9 |
| -import {LocationStrategy, HashLocationStrategy, PathLocationStrategy} from "@angular/common"; |
10 |
| -import {_UIROUTER_INSTANCE_PROVIDERS, _UIROUTER_SERVICE_PROVIDERS} from "./providers"; |
| 1 | +/** @ng2api @module core */ |
| 2 | +/** */ |
| 3 | +import { Ng2StateDeclaration } from "./interface"; |
| 4 | +import { |
| 5 | + NgModule, OpaqueToken, ModuleWithProviders, ANALYZE_FOR_ENTRY_COMPONENTS, Provider, Type |
| 6 | +} from "@angular/core"; |
| 7 | +import { CommonModule, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from "@angular/common"; |
| 8 | +import { _UIROUTER_DIRECTIVES } from "./directives/directives"; |
| 9 | +import { UIView } from "./directives/uiView"; |
| 10 | +import { UrlRuleHandlerFn, TargetState, TargetStateDef } from "ui-router-core"; |
| 11 | +import { _UIROUTER_INSTANCE_PROVIDERS, _UIROUTER_SERVICE_PROVIDERS } from "./providers"; |
11 | 12 |
|
12 | 13 | export function makeRootProviders(module: StatesModule): Provider[] {
|
13 | 14 | return [
|
@@ -157,7 +158,7 @@ export interface RootModule extends StatesModule {
|
157 | 158 | /**
|
158 | 159 | * Sets [[UrlRouterProvider.otherwise]].
|
159 | 160 | */
|
160 |
| - otherwise?: (string | Function | { state: string, params?: RawParams }) |
| 161 | + otherwise?: (string | UrlRuleHandlerFn | TargetState | TargetStateDef) |
161 | 162 |
|
162 | 163 | /**
|
163 | 164 | * Sets [[UrlRouterProvider.deferIntercept]]
|
|
0 commit comments