Skip to content

Commit

Permalink
feat(navigation): @deeplink decorator
Browse files Browse the repository at this point in the history
@deeplink decorator
  • Loading branch information
danbucholtz committed Mar 3, 2017
1 parent b7df0d8 commit 3e70856
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export { DeepLinker } from './navigation/deep-linker';
export { NavController } from './navigation/nav-controller';
export { NavControllerBase } from './navigation/nav-controller-base';
export { NavParams } from './navigation/nav-params';
export { NavLink, NavOptions, DeepLink, DeepLinkConfig, DeepLinkMetadata, DeepLinkMetadataType } from './navigation/nav-util';
export { NavLink, NavOptions, DeepLink, DeepLinkConfig, DeepLinkMetadata, DeepLinkMetadataFactory, DeepLinkMetadataType } from './navigation/nav-util';
export { UrlSerializer, DeepLinkConfigToken } from './navigation/url-serializer';
export { ViewController } from './navigation/view-controller';
export { ActionSheetCmp } from './components/action-sheet/action-sheet-component';
Expand Down
8 changes: 7 additions & 1 deletion src/navigation/nav-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ export function isNav(nav: any): boolean {
return !!nav && !!nav.push;
}

export function DeepLink(config: DeepLinkMetadataType) {
return function(cls: any) {
return cls;
};
}

// public link interface
export interface DeepLinkMetadataType {
name?: string;
Expand Down Expand Up @@ -130,7 +136,7 @@ export interface DeepLinkMetadataFactory {
/**
* @private
*/
export var DeepLink: DeepLinkMetadataFactory;
export var DeepLinkMetadataFactory: DeepLinkMetadataFactory;

/**
* @private
Expand Down

0 comments on commit 3e70856

Please sign in to comment.