feat(navigation): @DeepLink decorator

@DeepLink decorator
This commit is contained in:
Dan Bucholtz
2017-03-03 15:35:57 -06:00
parent b7df0d8efb
commit 3e70856c0b
2 changed files with 8 additions and 2 deletions

View File

@ -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;
@ -130,7 +136,7 @@ export interface DeepLinkMetadataFactory {
/**
* @private
*/
export var DeepLink: DeepLinkMetadataFactory;
export var DeepLinkMetadataFactory: DeepLinkMetadataFactory;
/**
* @private