mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 23:01:57 +08:00
feat(navigation): @DeepLink decorator
@DeepLink decorator
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user