Skip to content

Commit

Permalink
docs(UrlService): Document url service API
Browse files Browse the repository at this point in the history
fix(UrlService): Wire urlMatcherFactory and urlRouter functions
  • Loading branch information
christopherthielen committed Dec 30, 2016
1 parent eb2f5d7 commit a7b58d6
Show file tree
Hide file tree
Showing 9 changed files with 459 additions and 318 deletions.
2 changes: 1 addition & 1 deletion src/common/coreservices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ export interface LocationConfig extends Disposable {
hashPrefix(newprefix: string): string;
}

/** @hidden */
export interface TemplateServices {
get(url: string): Promise<string>;
}


export {services};
9 changes: 8 additions & 1 deletion src/params/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @coreapi
* @module params
*/ /** for typedoc */

import {ParamType} from "./type";

/**
Expand All @@ -16,11 +17,14 @@ import {ParamType} from "./type";
* folderId: 'inbox'
* }
* ```
*
* @coreapi
*/
export interface RawParams {
[key: string]: any;
}

/** @internalapi */
export type ParamsOrArray = (RawParams|RawParams[]);

/**
Expand Down Expand Up @@ -53,6 +57,7 @@ export type ParamsOrArray = (RawParams|RawParams[]);
* }
* }
* ```
* @coreapi
*/
export interface ParamDeclaration {
/**
Expand Down Expand Up @@ -291,6 +296,7 @@ export interface ParamDeclaration {
raw: boolean;
}

/** @internalapi */
export interface Replace {
from: string;
to: string;
Expand Down Expand Up @@ -402,7 +408,8 @@ export interface Replace {
* $state.go('list', { item: "Ringo" });
* ```
*
* See: [[UrlMatcherFactory.type]]
* See: [[UrlConfig.type]]
* @coreapi
*/
export interface ParamTypeDefinition {
/**
Expand Down
1 change: 1 addition & 0 deletions src/url/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export * from "./urlMatcher";
export * from "./urlMatcherFactory";
export * from "./urlRouter";
export * from "./urlRule";
export * from "./urlService";
Loading

0 comments on commit a7b58d6

Please sign in to comment.