1 |
|
2 | import { StateObject, ViewConfig, ViewConfigFactory, PathNode, ResolveContext, IInjectable } from '@uirouter/core';
|
3 | import { Ng1ViewDeclaration } from '../interface';
|
4 | import { TemplateFactory } from '../templateFactory';
|
5 |
|
6 | export declare function getNg1ViewConfigFactory(): ViewConfigFactory;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function ng1ViewsBuilder(state: StateObject): {
|
19 | [key: string]: Ng1ViewDeclaration;
|
20 | };
|
21 |
|
22 | export declare class Ng1ViewConfig implements ViewConfig {
|
23 | path: PathNode[];
|
24 | viewDecl: Ng1ViewDeclaration;
|
25 | factory: TemplateFactory;
|
26 | $id: number;
|
27 | loaded: boolean;
|
28 | controller: Function;
|
29 | template: string;
|
30 | component: string;
|
31 | locals: any;
|
32 | constructor(path: PathNode[], viewDecl: Ng1ViewDeclaration, factory: TemplateFactory);
|
33 | load(): Promise<this>;
|
34 | getTemplate: (uiView: any, context: ResolveContext) => string;
|
35 | /**
|
36 | * Gets the controller for a view configuration.
|
37 | *
|
38 | * @returns {Function|Promise.<Function>} Returns a controller, or a promise that resolves to a controller.
|
39 | */
|
40 | getController(context: ResolveContext): IInjectable | string | Promise<IInjectable | string>;
|
41 | }
|